You are here

public function Tour::getTip in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::getTip()
  2. 9 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 113

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Entity

Code

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