ConfigInstaller::findDefaultConfigWithUnmetDependencies

protected ConfigInstaller::findDefaultConfigWithUnmetDependencies(StorageInterface $storage, array $enabled_extensions, array $profile_storages = [])

Finds default configuration with unmet dependencies.

Parameters

\Drupal\Core\Config\StorageInterface $storage: The storage containing the default configuration.

array $enabled_extensions: A list of all the currently enabled modules and themes.

\Drupal\Core\Config\StorageInterface[] $profile_storages: An array of storage interfaces containing profile configuration to check for overrides.

Return value

array List of configuration that has unmet dependencies

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 490

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

protected function findDefaultConfigWithUnmetDependencies(StorageInterface $storage, array $enabled_extensions, array $profile_storages = []) {
  $config_to_create = $this->getConfigToCreate($storage, StorageInterface::DEFAULT_COLLECTION, '', $profile_storages);
  $all_config = array_merge($this->configFactory->listAll(), array_keys($config_to_create));
  return array_filter(array_keys($config_to_create), function($config_name) use ($enabled_extensions, $all_config, $config_to_create) {
    return !$this->validateDependencies($config_name, $config_to_create[$config_name], $enabled_extensions, $all_config);
  });
}
doc_Drupal
2016-10-29 08:53:53
Comments
Leave a Comment

Please login to continue.