function YamlDiscoveryDecorator::getDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator::getDefinitions()
  2. 8.9.x core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator::getDefinitions()
  3. 10 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator::getDefinitions()

Overrides YamlDiscovery::getDefinitions

File

core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php, line 42

Class

YamlDiscoveryDecorator
Enables YAML discovery for plugin definitions.

Namespace

Drupal\Core\Plugin\Discovery

Code

public function getDefinitions() {
    return parent::getDefinitions() + $this->decorated
        ->getDefinitions();
}

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