public function HelpTopicTwig::getBody in Drupal 10
Same name and namespace in other branches
- 8 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getBody()
- 9 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::getBody()
File
- core/
modules/ help_topics/ src/ HelpTopicTwig.php, line 63
Class
- HelpTopicTwig
- Represents a help topic plugin whose definition comes from a Twig file.
Namespace
Drupal\help_topicsCode
public function getBody() {
return [
'#markup' => $this->twig
->load('@help_topics/' . $this
->getPluginId() . '.html.twig')
->render(),
];
}