You are here

protected function TypedConfigManager::getDiscovery in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::getDiscovery()

Gets the plugin discovery.

Return value

\Drupal\Component\Plugin\Discovery\DiscoveryInterface

Overrides DefaultPluginManager::getDiscovery

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 66

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

protected function getDiscovery() {
  if (!isset($this->discovery)) {
    $this->discovery = new ConfigSchemaDiscovery($this->schemaStorage);
  }
  return $this->discovery;
}