You are here

public function ConfigCollector::getConfigProviders in Configuration Provider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ConfigCollector.php \Drupal\config_provider\Plugin\ConfigCollector::getConfigProviders()

Gets all configuration provider plugins.

Return value

\Drupal\config_provider\Plugin\ConfigProviderInterface[] An array of fully initialized configuration provider instances.

Overrides ConfigCollectorInterface::getConfigProviders

1 call to ConfigCollector::getConfigProviders()
ConfigCollector::getInstallableConfig in src/Plugin/ConfigCollector.php
Gets installable configuration from all provider plugins.

File

src/Plugin/ConfigCollector.php, line 83

Class

ConfigCollector
Class for invoking configuration providers..

Namespace

Drupal\config_provider\Plugin

Code

public function getConfigProviders() {
  if (empty($this->configProviders)) {
    $definitions = $this->configProviderManager
      ->getDefinitions();
    foreach (array_keys($definitions) as $id) {
      $this
        ->initConfigProviderInstance($id);
    }
  }
  return $this->configProviders;
}