You are here

public function TipPluginTextLegacy::getOutput in Drupal 9

This method should not be used. It is deprecated from TipPluginInterface.

@todo remove in https://drupal.org/node/3195193

Return value

array An intentionally empty array.

Overrides TipPluginBase::getOutput

File

core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php, line 112

Class

TipPluginTextLegacy
Displays some text as a tip.

Namespace

Drupal\tour_test\Plugin\tour\tip

Code

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 [
    '#markup' => $output,
  ];
}