You are here

public function TipPluginBase::get in Drupal 8

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

Used for returning values by key.

Key of the value.

Return value

string Value of the key.

Overrides TipPluginInterface::get

9 calls to TipPluginBase::get()
TipPluginBase::getAttributes in core/modules/tour/src/TipPluginBase.php
Returns an array of attributes for the tip wrapper.
TipPluginBase::getLabel in core/modules/tour/src/TipPluginBase.php
Returns label of the tip.
TipPluginBase::getWeight in core/modules/tour/src/TipPluginBase.php
Returns weight of the tip.
TipPluginBase::id in core/modules/tour/src/TipPluginBase.php
Returns id of the tip.
TipPluginImage::getOutput in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
Returns a renderable array.

... See full list

File

core/modules/tour/src/TipPluginBase.php, line 69

Class

TipPluginBase
Defines a base tour item implementation.

Namespace

Drupal\tour

Code

public function get($key) {
  if (!empty($this->configuration[$key])) {
    return $this->configuration[$key];
  }
}