HelpTopicTwigLoader
class HelpTopicTwigLoader extends FilesystemLoader (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. |
Loads help topic Twig files from the filesystem.
This loader adds module and theme help topic paths to a help_topics namespace to the Twig filesystem loader so that help_topics can be referenced, using '@help-topic/pluginId.html.twig'.
Constants
| MAIN_NAMESPACE |
{@inheritdoc} |
Methods
__construct(string $root_path, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler)
Constructs a new HelpTopicTwigLoader object.
addExtension($path)
Adds an extensions help_topics directory to the Twig loader.
getSourceContext($name)
{@inheritdoc}
Details
__construct(string $root_path, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler)
Constructs a new HelpTopicTwigLoader object.
protected
addExtension($path)
Adds an extensions help_topics directory to the Twig loader.
getSourceContext($name)
{@inheritdoc}