function TipPluginText::getAriaId

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\tip

Code

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.