TempStore::setIfNotExists |
function |
drupal/core/modules/user/lib/Drupal/user/TempStore.php |
Stores a particular key/value pair only if the key doesn't already exist. |
MemoryStorage::setIfNotExists |
function |
drupal/core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php |
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::setIfNotExists(). |
DatabaseStorage::setIfNotExists |
function |
drupal/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php |
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::setIfNotExists(). |
StorageTestBase::testSetIfNotExists |
function |
drupal/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/StorageTestBase.php |
Tests the setIfNotExists() method. |
NullStorageExpirable::setIfNotExists |
function |
drupal/core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php |
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::setIfNotExists(). |
KeyValueStoreInterface::setIfNotExists |
function |
drupal/core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php |
Saves a value for a given key if it does not exist yet. |