You are here

public function TourTipPluginInterface::getLocation in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/tour/src/TourTipPluginInterface.php \Drupal\tour\TourTipPluginInterface::getLocation()

Returns the configured placement of the tip relative to the element.

If null, the tip will automatically determine the best position based on the element's position in the viewport.

This typically maps to the Shepherd Step options `attachTo.on` property.

Return value

string|null The tip placement relative to the element.

See also

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

File

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

Class

TourTipPluginInterface
Defines an interface for tour items.

Namespace

Drupal\tour

Code

public function getLocation() : ?string;