2 * Implements hook_tour_tips_alter().
4 function {{ machine_name }}_tour_tips_alter(array &$tour_tips, Drupal\Core\Entity\EntityInterface $entity) {
5 foreach ($tour_tips as $tour_tip) {
6 if ($tour_tip->get('id') == 'tour-code-test-1') {
7 $tour_tip->set('body', 'Altered by hook_tour_tips_alter');