W3cubDocs

/Drupal 8

public function ExtensionInstallStorage::__construct

public ExtensionInstallStorage::__construct(StorageInterface $config_storage, $directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION, $include_profile = TRUE)

Overrides \Drupal\Core\Config\InstallStorage::__construct().

Parameters

\Drupal\Core\Config\StorageInterface $config_storage: The active configuration store where the list of enabled modules and themes is stored.

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.

bool $include_profile: (optional) Whether to include the install profile in extensions to search and to get overrides from.

Overrides InstallStorage::__construct

File

core/lib/Drupal/Core/Config/ExtensionInstallStorage.php, line 46

Class

ExtensionInstallStorage
Storage to access configuration and schema in enabled extensions.

Namespace

Drupal\Core\Config

Code

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

© 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!ExtensionInstallStorage.php/function/ExtensionInstallStorage::__construct/8.1.x