function ConfigCollectionInfo::getOverrideService

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigCollectionInfo.php \Drupal\Core\Config\ConfigCollectionInfo::getOverrideService()
  2. 8.9.x core/lib/Drupal/Core/Config/ConfigCollectionInfo.php \Drupal\Core\Config\ConfigCollectionInfo::getOverrideService()
  3. 10 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 70

Class

ConfigCollectionInfo
Gets information on all the possible configuration collections.

Namespace

Drupal\Core\Config

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.