Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HelpTopicTwig.php

function 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\help

Code

public function getBody() {
    return [
        '#markup' => $this->twig
            ->load('@help_topics/' . $this->getPluginId() . '.html.twig')
            ->render(),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal