interface KeyValueFactoryInterface

Defines the key/value store factory interface.

Hierarchy

Expanded class hierarchy of KeyValueFactoryInterface

All classes that implement KeyValueFactoryInterface

35 files declare their use of KeyValueFactoryInterface
AnnouncementsFeedCronHooks.php in core/modules/announcements_feed/src/Hook/AnnouncementsFeedCronHooks.php
CaptureTransport.php in core/modules/mailer/tests/modules/mailer_capture/src/Transport/CaptureTransport.php
CheckpointStorage.php in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php
DevelopmentSettingsForm.php in core/modules/system/src/Form/DevelopmentSettingsForm.php
EntityFieldManager.php in core/lib/Drupal/Core/Entity/EntityFieldManager.php

... See full list

File

core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php, line 8

Namespace

Drupal\Core\KeyValueStore
View source
interface KeyValueFactoryInterface {
  
  /**
   * Constructs a new key/value store for a given collection name.
   *
   * @param string $collection
   *   The name of the collection holding key and value pairs.
   *
   * @return \Drupal\Core\KeyValueStore\KeyValueStoreInterface
   *   A key/value store implementation for the given $collection.
   */
  public function get($collection);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
KeyValueFactoryInterface::get public function Constructs a new key/value store for a given collection name. 3

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