public function TipPluginText::getOutput

Implements \Drupal\tour\TipPluginInterface::getOutput().

Overrides TipPluginInterface::getOutput

File

drupal/core/modules/tour/lib/Drupal/tour/Plugin/tour/tip/TipPluginText.php, line 84
Contains \Drupal\tour\Plugin\tour\tip\TipPluginText.

Class

TipPluginText
Displays some text as a tip.

Namespace

Drupal\tour\Plugin\tour\tip

Code

public function getOutput() {
  $output = '<h2 class="tour-tip-label" id="tour-tip-' . $this
    ->getAriaId() . '-label">' . check_plain($this
    ->getLabel()) . '</h2>';
  $output .= '<p class="tour-tip-body" id="tour-tip-' . $this
    ->getAriaId() . '-contents">' . filter_xss_admin($this
    ->getBody()) . '</p>';
  return array(
    '#markup' => $output,
  );
}