function TipPluginBase::getSelector
Same name and namespace in other branches
- 9 core/modules/tour/src/TipPluginBase.php \Drupal\tour\TipPluginBase::getSelector()
- 11.x core/modules/tour/src/TipPluginBase.php \Drupal\tour\TipPluginBase::getSelector()
Returns the selector the tour tip will attach to.
This typically maps to the Shepherd Step options `attachTo.element` property.
Return value
null|string A selector string, or null for an unattached tip.
Overrides TipPluginInterface::getSelector
File
-
core/
modules/ tour/ src/ TipPluginBase.php, line 101
Class
- TipPluginBase
- Defines a base tour item implementation.
Namespace
Drupal\tourCode
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.