function TipPluginInterface::getBody

Same name in other branches
  1. 11.x core/modules/tour/src/TipPluginInterface.php \Drupal\tour\TipPluginInterface::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

1 method overrides TipPluginInterface::getBody()
TipPluginBase::getBody in core/modules/tour/src/TipPluginBase.php
Returns the body content of the tooltip.

File

core/modules/tour/src/TipPluginInterface.php, line 73

Class

TipPluginInterface
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.