function Tour::getTips
Same name in other branches
- 8.9.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::getTips()
- 10 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::getTips()
- 11.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::getTips()
Overrides TourInterface::getTips
File
-
core/
modules/ tour/ src/ Entity/ Tour.php, line 120
Class
- Tour
- Defines the configured tour entity.
Namespace
Drupal\tour\EntityCode
public function getTips() {
$tips = [];
foreach ($this->tips as $id => $tip) {
$tips[] = $this->getTip($id);
}
uasort($tips, function ($a, $b) {
return $a->getWeight() <=> $b->getWeight();
});
\Drupal::moduleHandler()->alter('tour_tips', $tips, $this);
return array_values($tips);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.