function hook_tour_update

Respond to updates to a tour object.

Parameters

\Drupal\tour\Plugin\Core\Entity\Tour $entity: The tour object being updated.

1 function implements hook_tour_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

tour_tour_update in drupal/core/modules/tour/tour.module
Implements hook_tour_update().

File

drupal/core/modules/tour/tour.api.php, line 85
Describes API functions for tour module.

Code

function hook_tour_update($entity) {
  drupal_container()
    ->get('plugin.manager.tour.tip')
    ->clearCachedDefinitions();
  cache('cache_tour')
    ->deleteTags(array(
    'tour_items',
  ));
}