Allow modules to alter tour items before render.
array $tour_tips: Array of \Drupal\tour\TipPluginInterface items.
\Drupal\Core\Entity\EntityInterface $entity: The tour which contains the $tour_tips.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_tour_tips_alter(array &$tour_tips, Drupal\Core\Entity\EntityInterface $entity) {
foreach ($tour_tips as $tour_tip) {
if ($tour_tip
->get('id') == 'tour-code-test-1') {
$tour_tip
->set('body', 'Altered by hook_tour_tips_alter');
}
}
}