You are here

public function FeaturesInstallStorage::__construct in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/FeaturesInstallStorage.php \Drupal\features\FeaturesInstallStorage::__construct()

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

Sets includeProfile to FALSE.

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'. This parameter will be mandatory in Drupal 9.0.0.

string $collection: (optional) The collection to store configuration in. Defaults to the default collection. This parameter will be mandatory in Drupal 9.0.0.

bool $include_profile: (optional) Whether to include the install profile in extensions to search and to get overrides from. This parameter will be mandatory in Drupal 9.0.0.

string|null $profile: (optional) The current installation profile. This parameter will be mandatory in Drupal 9.0.0.

Overrides ExtensionInstallStorage::__construct

File

src/FeaturesInstallStorage.php, line 44

Class

FeaturesInstallStorage
Storage to access configuration and schema in installed extensions.

Namespace

Drupal\features

Code

public function __construct(StorageInterface $config_storage, $directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION, $include_profile = TRUE, $profile = NULL) {

  // @todo: determine if we should be setting $include_profile to FALSE.
  parent::__construct($config_storage, $directory, $collection, FALSE, $profile);
}