public function ConfigCollectionInfo::getOverrideService

public ConfigCollectionInfo::getOverrideService($collection)

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 70

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

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