Search for key

  1. Search 7.x for key
  2. Search 9.5.x for key
  3. Search 8.9.x for key
  4. Search 11.x for key
  5. Other projects
Title Object type File name Summary
KeyValueStoreExpirableInterface::setMultipleWithExpire function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php Saves an array of values with a time to live.
KeyValueStoreExpirableInterface::setWithExpire function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php Saves a value for a given key with a time to live.
KeyValueStoreExpirableInterface::setWithExpireIfNotExists function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php Sets a value for a given key with a time to live if it does not yet exist.
KeyValueStoreInterface interface core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Defines the interface for key/value store implementations.
KeyValueStoreInterface.php file core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php
KeyValueStoreInterface::delete function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Deletes an item from the key/value store.
KeyValueStoreInterface::deleteAll function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Deletes all items from the key/value store.
KeyValueStoreInterface::deleteMultiple function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Deletes multiple items from the key/value store.
KeyValueStoreInterface::get function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Returns the stored value for a given key.
KeyValueStoreInterface::getAll function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Returns all stored key/value pairs in the collection.
KeyValueStoreInterface::getCollectionName function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Returns the name of this collection.
KeyValueStoreInterface::getMultiple function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Returns the stored key/value pairs for a given set of keys.
KeyValueStoreInterface::has function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Returns whether a given key exists in the store.
KeyValueStoreInterface::rename function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Renames a key.
KeyValueStoreInterface::set function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Saves a value for a given key.
KeyValueStoreInterface::setIfNotExists function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Saves a value for a given key if it does not exist yet.
KeyValueStoreInterface::setMultiple function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Saves key/value pairs.
keyvalue_test.info.yml file core/modules/system/tests/modules/keyvalue_test/keyvalue_test.info.yml core/modules/system/tests/modules/keyvalue_test/keyvalue_test.info.yml
keyvalue_test.module file core/modules/system/tests/modules/keyvalue_test/keyvalue_test.module Sets up the key value entity storage.
keyvalue_test_entity_type_alter function core/modules/system/tests/modules/keyvalue_test/keyvalue_test.module Implements hook_entity_type_alter().
LanguageListBuilder::$entitiesKey property core/modules/language/src/LanguageListBuilder.php The key to use for the form element containing the entities.
LayoutBuilderWidget::layoutBuilderElementGetKeys function core/modules/layout_builder/src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php Form element #process callback.
LayoutTempstoreRepository::getKey function core/modules/layout_builder/src/LayoutTempstoreRepository.php Gets the string to use as the tempstore key.
LinearHistory::CHECKPOINT_KEY constant core/lib/Drupal/Core/Config/Checkpoint/LinearHistory.php The store of all the checkpoint names in state.
LinearHistoryTest::CHECKPOINT_KEY constant core/tests/Drupal/Tests/Core/Config/Checkpoint/LinearHistoryTest.php The key used store of all the checkpoint names in state.
LinkCollection::hasLinkWithKey function core/modules/jsonapi/src/JsonApiResource/LinkCollection.php Whether a link with the given key exists.
LinkCollection::validKey function core/modules/jsonapi/src/JsonApiResource/LinkCollection.php Ensures that a link key is valid.
LinkCollectionNormalizer::LINK_KEY constant core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php The normalizer $context key name for the key of an individual link.
ListStringItem::processAllowedValuesKey function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Sets the machine name source to be the label.
LocaleProjectStorage::$keyValueStore property core/modules/locale/src/LocaleProjectStorage.php The key value store to use.
LocaleProjectStorageTest::$keyValueMemoryFactory property core/modules/locale/tests/src/Unit/LocaleProjectStorageTest.php
Log::$connectionKey property core/lib/Drupal/Core/Database/Log.php The connection key for which this object is logging.
LoggingTest::testGetLoggingWrongKey function core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php Tests that getLog with a wrong key return an empty array.
LonelyMonkeyClass class core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php A class with a single dependency.
LonelyMonkeyClass.php file core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php
LonelyMonkeyClass::$connection property core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php The database connection.
LonelyMonkeyClass::__construct function core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php
LonelyMonkeyController class core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php Provides a controller which calls out to a service with missing dependencies.
LonelyMonkeyController.php file core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php
LonelyMonkeyController::$class property core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php The lonely monkey class.
LonelyMonkeyController::create function core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php Instantiates a new instance of the implementing class using autowiring.
LonelyMonkeyController::testBrokenClass function core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php
LonelyMonkeyController::__construct function core/modules/system/tests/modules/error_service_test/src/Controller/LonelyMonkeyController.php
Mapping::getDefinedKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets the keys defined for this mapping (locally defined + inherited).
Mapping::getDynamicallyValidKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all dynamically valid keys.
Mapping::getOptionalKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all optional keys in this mapping.
Mapping::getRequiredKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all required keys in this mapping.
Mapping::getValidKeys function core/lib/Drupal/Core/Config/Schema/Mapping.php Gets all keys allowed in this mapping.
Mapping::processRequiredKeyFlags function core/lib/Drupal/Core/Config/Schema/Mapping.php Validates optional `requiredKey` flags, guarantees one will be set.
MappingTest::testInvalidMappingKeyDefinition function core/tests/Drupal/KernelTests/Config/Schema/MappingTest.php @testWith [false, 42, "The mapping definition at `foobar` is invalid: its `invalid` key contains a integer. It must be an array."]
[false, 10.2, "The mapping definition at `foobar` is invalid: its `invalid` key contains a double. It…

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.