function TourTipPluginInterface::getBody

Returns the body content of the tooltip.

This typically maps to the Shepherd Step options `text` property.

Return value

array A render array.

See also

https://shepherdjs.dev/docs/Step.html

2 methods override TourTipPluginInterface::getBody()
TipPluginImage::getBody in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
Returns the body content of the tooltip.
TipPluginText::getBody in core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
Returns the body content of the tooltip.

File

core/modules/tour/src/TourTipPluginInterface.php, line 41

Class

TourTipPluginInterface
Defines an interface for tour items.

Namespace

Drupal\tour

Code

public function getBody() : array;

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