function HelpTopicTwig::getBody
Same name in other branches
- 9 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getBody()
- 8.9.x core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getBody()
- 10 core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::getBody()
Overrides HelpTopicPluginInterface::getBody
File
-
core/
modules/ help/ src/ HelpTopicTwig.php, line 53
Class
- HelpTopicTwig
- Represents a help topic plugin whose definition comes from a Twig file.
Namespace
Drupal\helpCode
public function getBody() {
return [
'#markup' => $this->twig
->load('@help_topics/' . $this->getPluginId() . '.html.twig')
->render(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.