function hook_tour_load

Act on tour objects when loaded.

Parameters

array $entities: An array of \Drupal\tour\Plugin\Core\Entity\Tour objects, indexed by id.

1 function implements hook_tour_load()

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

tour_test_tour_load in drupal/core/modules/tour/tests/tour_test/tour_test.module
Implements hook_ENTITY_TYPE_load() for tour.

File

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

Code

function hook_tour_load($entities) {
  if (isset($entities['tour-entity-create-test-en'])) {
    $entities['tour-entity-create-test-en']->loaded = 'Load hooks work';
  }
}