public function TipPluginText::getAriaId in Drupal 8
Returns a ID that is guaranteed uniqueness.
Return value
string A unique id to be used to generate aria attributes.
2 calls to TipPluginText::getAriaId()
- TipPluginText::getAttributes in core/
modules/ tour/ src/ Plugin/ tour/ tip/ TipPluginText.php - Returns an array of attributes for the tip wrapper.
- TipPluginText::getOutput in core/
modules/ tour/ src/ Plugin/ tour/ tip/ TipPluginText.php - Returns a renderable array.
File
- core/
modules/ tour/ src/ Plugin/ tour/ tip/ TipPluginText.php, line 79
Class
- TipPluginText
- Displays some text as a tip.
Namespace
Drupal\tour\Plugin\tour\tipCode
public function getAriaId() {
if (!$this->ariaId) {
$this->ariaId = Html::getUniqueId($this
->get('id'));
}
return $this->ariaId;
}