KeyValueFactory::get

public KeyValueFactory::get($collection) Constructs a new key/value store for a given collection name. Parameters string $collection: The name of the collection holding key and value pairs. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface A key/value store implementation for the given $collection. Overrides KeyValueFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 61 Class KeyValueFactory Defines the key/value store factory. Namespace

KeyValueFactory::DEFAULT_SETTING

The default setting name. This is a setting name that will be used if the specific setting does not exist. The setting value will be the id of a service. File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 26 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code const DEFAULT_SETTING = 'default';

KeyValueFactory::DEFAULT_SERVICE

The default service id. If the default setting does not exist, this is the default service id. File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 33 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code const DEFAULT_SERVICE = 'keyvalue.database';

KeyValueFactory::$stores

Instantiated stores, keyed by collection name. Type: array File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 40 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code protected $stores = array();

KeyValueFactory::$container

var \Symfony\Component\DependencyInjection\ContainerInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 45 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code protected $container;

KeyValueFactory

Defines the key/value store factory. Hierarchy class \Drupal\Core\KeyValueStore\KeyValueFactory implements KeyValueFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 10 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueFactory::$container protected property var \Symfony\Component\DependencyInjection\ContainerInterface KeyValueFactory::$stores protected property Instantiated stores, keyed by collect

KeyValueExpirableFactoryInterface::get

public KeyValueExpirableFactoryInterface::get($collection) Constructs a new expirable key/value store for a given collection name. Parameters string $collection: The name of the collection holding key and value pairs. Return value \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key/value store implementation for the given $collection. File core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php, line 19 Class KeyValueExpirableFactoryInterface Defi

KeyValueExpirableFactoryInterface

Defines the expirable key/value store factory interface. Hierarchy interface \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueExpirableFactoryInterface::get public function Constructs a new expirable key/value store for a given collection name.

KeyValueEntityStorage::__construct

public KeyValueEntityStorage::__construct(EntityTypeInterface $entity_type, KeyValueStoreInterface $key_value_store, UuidInterface $uuid_service, LanguageManagerInterface $language_manager) Constructs a new KeyValueEntityStorage. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value_store: The key value store. \Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service. \Drupal\Core\Language\Langu

KeyValueEntityStorage::save

public KeyValueEntityStorage::save(EntityInterface $entity) Saves the entity permanently. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. Overrides EntityStorageBase::save File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 151 Class KeyValueEntityStor