You are here

public function TipPluginText::getOutput in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/tour/src/Plugin/tour/tip/TipPluginText.php \Drupal\tour\Plugin\tour\tip\TipPluginText::getOutput()

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/src/Plugin/tour/tip/TipPluginText.php, line 76

Class

TipPluginText
Displays some text as a tip.

Namespace

Drupal\tour\Plugin\tour\tip

Code

public function getOutput() {

  // Call parent to trigger error when calling this function.
  parent::getOutput();
  $output = '<p class="tour-tip-body">' . $this->token
    ->replace($this
    ->get('body')) . '</p>';
  return [
    '#markup' => $output,
  ];
}