W3cubDocs

/Drupal 8

public function ConfigManager::getConfigCollectionInfo

public ConfigManager::getConfigCollectionInfo()

Gets available collection information using the event system.

Return value

\Drupal\Core\Config\ConfigCollectionInfo The object which contains information about the available collections.

Overrides ConfigManagerInterface::getConfigCollectionInfo

File

core/lib/Drupal/Core/Config/ConfigManager.php, line 367

Class

ConfigManager
The ConfigManager provides helper functions for the configuration system.

Namespace

Drupal\Core\Config

Code

public function getConfigCollectionInfo() {
  if (!isset($this->configCollectionInfo)) {
    $this->configCollectionInfo = new ConfigCollectionInfo();
    $this->eventDispatcher->dispatch(ConfigEvents::COLLECTION_INFO, $this->configCollectionInfo);
  }
  return $this->configCollectionInfo;
}

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