You are here

protected function ConfigInstaller::findDefaultConfigWithUnmetDependencies in Zircon Profile 8

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

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

1 call to ConfigInstaller::findDefaultConfigWithUnmetDependencies()
ConfigInstaller::checkConfigurationToInstall in core/lib/Drupal/Core/Config/ConfigInstaller.php
Checks the configuration that will be installed for an extension.

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 477
Contains \Drupal\Core\Config\ConfigInstaller.

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