function KeyValueFactory::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php \Drupal\Core\KeyValueStore\KeyValueFactory::__construct()
  2. 10 core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php \Drupal\Core\KeyValueStore\KeyValueFactory::__construct()
  3. 11.x core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php \Drupal\Core\KeyValueStore\KeyValueFactory::__construct()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

array $options: (optional) Collection-specific storage override options.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 62

Class

KeyValueFactory
Defines the key/value store factory.

Namespace

Drupal\Core\KeyValueStore

Code

public function __construct(ContainerInterface $container, array $options = []) {
    $this->container = $container;
    $this->options = $options;
}

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