namespace Drupal\Core\Plugin\Discovery

Same name in other branches
  1. 9 Drupal\Core\Plugin\Discovery
  2. 8.9.x Drupal\Core\Plugin\Discovery
  3. 10 Drupal\Core\Plugin\Discovery
Object name File name Summary
AnnotatedClassDiscovery core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces.
AttributeClassDiscovery core/lib/Drupal/Core/Plugin/Discovery/AttributeClassDiscovery.php Defines a discovery mechanism to find plugins using attributes.
AttributeDiscoveryWithAnnotations core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php Enables both attribute and annotation discovery for plugin definitions.
ContainerDerivativeDiscoveryDecorator core/lib/Drupal/Core/Plugin/Discovery/ContainerDerivativeDiscoveryDecorator.php Injects dependencies into derivers if they use ContainerDeriverInterface.
ContainerDeriverInterface core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php Creates additional plugin definitions.
DirectoryWithMetadataDiscovery core/lib/Drupal/Core/Plugin/Discovery/DirectoryWithMetadataDiscovery.php Does the actual finding of the directories with metadata files.
DirectoryWithMetadataPluginDiscovery core/lib/Drupal/Core/Plugin/Discovery/DirectoryWithMetadataPluginDiscovery.php Discover directories that contain a specific metadata file.
HookDiscovery core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Provides a hook-based plugin discovery class.
InfoHookDecorator core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Allows info hook implementations to enhance discovered plugin definitions.
RegexRecursiveFilterIterator core/lib/Drupal/Core/Plugin/Discovery/RegexRecursiveFilterIterator.php Iterates over files whose names match a regular expression in a directory.
YamlDirectoryDiscovery core/lib/Drupal/Core/Plugin/Discovery/YamlDirectoryDiscovery.php Allows multiple YAML files per directory to define plugin definitions.
YamlDiscovery core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php Allows YAML files to define plugin definitions.
YamlDiscoveryDecorator core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php Enables YAML discovery for plugin definitions.

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