You are here

public function Tour::getTip in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\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 core/modules/tour/src/Entity/Tour.php
Returns the tips for this tour.

File

core/modules/tour/src/Entity/Tour.php, line 109
Contains \Drupal\tour\Entity\Tour.

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Entity

Code

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