You are here

public function InstallStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::__construct()

Constructs an InstallStorage object.

Parameters

string $directory: The directory to scan in each extension to scan for files. Defaults to 'config/install'.

string $collection: (optional) The collection to store configuration in. Defaults to the default collection.

Overrides FileStorage::__construct

1 method overrides InstallStorage::__construct()
ExtensionInstallStorage::__construct in core/lib/Drupal/Core/Config/ExtensionInstallStorage.php
Overrides \Drupal\Core\Config\InstallStorage::__construct().

File

core/lib/Drupal/Core/Config/InstallStorage.php, line 65
Contains \Drupal\Core\Config\InstallStorage.

Class

InstallStorage
Storage used by the Drupal installer.

Namespace

Drupal\Core\Config

Code

public function __construct($directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION) {
  $this->directory = $directory;
  $this->collection = $collection;
}