W3cubDocs

/Drupal 8

public function InstallStorage::__construct

public InstallStorage::__construct($directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION)

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

File

core/lib/Drupal/Core/Config/InstallStorage.php, line 60

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!InstallStorage.php/function/InstallStorage::__construct/8.1.x