function TipPluginTextLegacy::getBody

Same name in other branches
  1. 9 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginTextLegacy::getBody()
  2. 10 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginTextLegacy::getBody()

Returns body of the text tip.

Return value

array The tip body.

Overrides TipPluginBase::getBody

File

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

Class

TipPluginTextLegacy
Displays some text as a tip.

Namespace

Drupal\tour_test\Plugin\tour\tip

Code

public function getBody() : array {
    return [
        $this->get('body'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.