You are here

public function TipPluginBase::getAttributes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/tour/src/TipPluginBase.php \Drupal\tour\TipPluginBase::getAttributes()

Returns an array of attributes for the tip wrapper.

Return value

array An array of classes and values.

Overrides TipPluginInterface::getAttributes

1 call to TipPluginBase::getAttributes()
TipPluginText::getAttributes in core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
Returns an array of attributes for the tip wrapper.
1 method overrides TipPluginBase::getAttributes()
TipPluginText::getAttributes in core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
Returns an array of attributes for the tip wrapper.

File

core/modules/tour/src/TipPluginBase.php, line 67
Contains \Drupal\tour\TipPluginBase.

Class

TipPluginBase
Defines a base tour item implementation.

Namespace

Drupal\tour

Code

public function getAttributes() {
  return $this
    ->get('attributes') ?: [];
}