public function Tour::getTip

Returns tip plugin.

Parameters

string $id: The identifier of the tip.

Return value

\Drupal\tour\TipPluginInterface The tip plugin.

Overrides TourInterface::getTip

1 call to Tour::getTip()
Tour::getTips in drupal/core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php
Returns the tips for this tour.

File

drupal/core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php, line 98
Contains \Drupal\tour\Plugin\Core\Entity\Tour.

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Plugin\Core\Entity

Code

public function getTip($id) {
  return $this->tipsBag
    ->get($id);
}