You are here

public function TipPluginText::getAriaId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/tour/src/Plugin/tour/tip/TipPluginText.php \Drupal\tour\Plugin\tour\tip\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 77
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 = Html::getUniqueId($this
      ->get('id'));
  }
  return $id;
}