KeyValueFactoryInterface.php 493 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\KeyValueStore;
  3. /**
  4. * Defines the key/value store factory interface.
  5. */
  6. interface KeyValueFactoryInterface {
  7. /**
  8. * Constructs a new key/value store for a given collection name.
  9. *
  10. * @param string $collection
  11. * The name of the collection holding key and value pairs.
  12. *
  13. * @return \Drupal\Core\KeyValueStore\KeyValueStoreInterface
  14. * A key/value store implementation for the given $collection.
  15. */
  16. public function get($collection);
  17. }