public 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 drupal/core/modules/tour/lib/Drupal/tour/Plugin/tour/tip/TipPluginText.php
Overrides \Drupal\tour\TipPluginBase::getAttributes().
TipPluginText::getOutput in drupal/core/modules/tour/lib/Drupal/tour/Plugin/tour/tip/TipPluginText.php
Implements \Drupal\tour\TipPluginInterface::getOutput().

File

drupal/core/modules/tour/lib/Drupal/tour/Plugin/tour/tip/TipPluginText.php, line 40
Contains \Drupal\tour\Plugin\tour\tip\TipPluginText.

Class

TipPluginText
Displays some text as a tip.

Namespace

Drupal\tour\Plugin\tour\tip

Code

public function getAriaId() {
  static $id;
  if (!isset($id)) {
    $id = drupal_html_id($this
      ->get('id'));
  }
  return $id;
}