function TipPluginBase::getSelector

Same name in other branches
  1. 10 core/modules/tour/src/TipPluginBase.php \Drupal\tour\TipPluginBase::getSelector()
  2. 11.x core/modules/tour/src/TipPluginBase.php \Drupal\tour\TipPluginBase::getSelector()

The selector the tour tip will attach to.

This is mapped to the `attachTo.element` property of the Shepherd tooltip options.

Return value

null|string A selector string, or null for an unattached tip.

See also

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

File

core/modules/tour/src/TipPluginBase.php, line 195

Class

TipPluginBase
Defines a base tour item implementation.

Namespace

Drupal\tour

Code

public function getSelector() : ?string {
    return $this->get('selector');
}

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