public function TipPluginText::getOutput in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/tour/src/Plugin/tour/tip/TipPluginText.php \Drupal\tour\Plugin\tour\tip\TipPluginText::getOutput()
Returns a renderable array.
Return value
array A renderable array.
Overrides TipPluginInterface::getOutput
File
- core/
modules/ tour/ src/ Plugin/ tour/ tip/ TipPluginText.php, line 121 - Contains \Drupal\tour\Plugin\tour\tip\TipPluginText.
Class
- TipPluginText
- Displays some text as a tip.
Namespace
Drupal\tour\Plugin\tour\tipCode
public function getOutput() {
$output = '<h2 class="tour-tip-label" id="tour-tip-' . $this
->getAriaId() . '-label">' . Html::escape($this
->getLabel()) . '</h2>';
$output .= '<p class="tour-tip-body" id="tour-tip-' . $this
->getAriaId() . '-contents">' . $this->token
->replace($this
->getBody()) . '</p>';
return array(
'#markup' => $output,
);
}