public function KeyValueFactory::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\KeyValueStoreCode
public function __construct(ContainerInterface $container, array $options = []) {
$this->container = $container;
$this->options = $options;
}