public function TipPluginBase::getSelector in Drupal 10
Same name and namespace in other branches
- 9 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 117
Class
- TipPluginBase
- Defines a base tour item implementation.
Namespace
Drupal\tourCode
public function getSelector() : ?string {
return $this
->get('selector');
}