HelpTopicDiscovery
class HelpTopicDiscovery implements DiscoveryInterface (View source)
| internal | Help Topics is currently experimental and should only be leveraged by experimental modules and development releases of contributed modules. See https://www.drupal.org/core/experimental for more information. |
Discovers help topic plugins from Twig files in help_topics directories.
Traits
Constants
| FILE_KEY |
Defines the key in the discovered data where the file path is stored. |
Properties
| protected array | $directories | An array of directories to scan, keyed by the provider. |
Methods
array
getDefinitions()
Gets the definition of all plugins for this type.
array|null
doGetDefinition(array $definitions, string $plugin_id, bool $exception_on_invalid)
Gets a specific plugin definition.
from
DiscoveryTrait
__construct(array $directories)
Constructs a HelpTopicDiscovery object.
array
findAll()
Returns an array of discoverable items.
array
findFiles()
Returns an array of providers keyed by file path.
Details
array
getDefinitions()
Gets the definition of all plugins for this type.
getDefinition($plugin_id, $exception_on_invalid = TRUE)
{@inheritdoc}
protected array|null
doGetDefinition(array $definitions, string $plugin_id, bool $exception_on_invalid)
Gets a specific plugin definition.
hasDefinition($plugin_id)
{@inheritdoc}
__construct(array $directories)
Constructs a HelpTopicDiscovery object.
array
findAll()
Returns an array of discoverable items.
protected array
findFiles()
Returns an array of providers keyed by file path.