You are here

public function ConfigCollectionInfo::getOverrideService in Zircon Profile 8

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

Gets the config factory override service responsible for the collection.

Parameters

string $collection: The configuration collection.

Return value

\Drupal\Core\Config\ConfigFactoryOverrideInterface|NULL The override service responsible for the collection if one exists. NULL if not.

File

core/lib/Drupal/Core/Config/ConfigCollectionInfo.php, line 75
Contains \Drupal\Core\Config\ConfigCollectionInfo.

Class

ConfigCollectionInfo
Gets information on all the possible configuration collections.

Namespace

Drupal\Core\Config

Code

public function getOverrideService($collection) {
  return isset($this->collections[$collection]) ? $this->collections[$collection] : NULL;
}