KeyValueDatabaseExpirableFactory::get

public KeyValueDatabaseExpirableFactory::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. Overrides KeyValueExpirableFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 50

KeyValueDatabaseExpirableFactory::garbageCollection

public KeyValueDatabaseExpirableFactory::garbageCollection() Deletes expired items. File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 60 Class KeyValueDatabaseExpirableFactory Defines the key/value store factory for the database backend. Namespace Drupal\Core\KeyValueStore Code public function garbageCollection() { $this->connection->delete('key_value_expire') ->condition('expire', REQUEST_TIME, '<') ->execute(); }

KeyValueDatabaseExpirableFactory::$storages

Holds references to each instantiation so they can be terminated. Type: \Drupal\Core\KeyValueStore\DatabaseStorageExpirable[] File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 18 Class KeyValueDatabaseExpirableFactory Defines the key/value store factory for the database backend. Namespace Drupal\Core\KeyValueStore Code protected $storages = array();

KeyValueDatabaseExpirableFactory::$serializer

The serialization class to use. Type: \Drupal\Component\Serialization\SerializationInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 25 Class KeyValueDatabaseExpirableFactory Defines the key/value store factory for the database backend. Namespace Drupal\Core\KeyValueStore Code protected $serializer;

KeyValueDatabaseExpirableFactory::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 32 Class KeyValueDatabaseExpirableFactory Defines the key/value store factory for the database backend. Namespace Drupal\Core\KeyValueStore Code protected $connection;

KeyValueDatabaseExpirableFactory

Defines the key/value store factory for the database backend. Hierarchy class \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory implements KeyValueExpirableFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php, line 11 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueDatabaseExpirableFactory::$connection protected property The database connection. KeyValueDatabaseExpirableFactory::$ser

KeyValueContentEntityStorage::createTranslation

public KeyValueContentEntityStorage::createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) Constructs a new entity translation object, without permanently saving it. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object being translated. string $langcode: The translation language code. array $values: (optional) An associative array of initial field values keyed by field name. If none is provided default values will be applied. Return value

KeyValueContentEntityStorage

Provides a key value backend for content entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorageclass \Drupal\Core\Entity\KeyValueStore\KeyValueContentEntityStorage implements ContentEntityStorageInterface File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueCont

JS_THEME

The default group for theme JavaScript code added to the page. File core/includes/common.inc, line 124 Common functions that many Drupal modules will need to reference. Code const JS_THEME = 100;

JS_SETTING

The default group for JavaScript settings added to the page. File core/includes/common.inc, line 109 Common functions that many Drupal modules will need to reference. Code const JS_SETTING = -200;