function TipPluginTextLegacy::getAriaId
Returns an ID that is guaranteed uniqueness.
Return value
string A unique id to be used to generate aria attributes.
File
-
core/
modules/ tour/ tests/ tour_test/ src/ Plugin/ tour/ tip/ TipPluginTextLegacy.php, line 79
Class
- TipPluginTextLegacy
- Displays some text as a tip.
Namespace
Drupal\tour_test\Plugin\tour\tipCode
public function getAriaId() {
if (!$this->ariaId) {
$this->ariaId = Html::getUniqueId($this->get('id'));
}
return $this->ariaId;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.