You are here

function tour_test_tour_load in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/tour/tests/tour_test/tour_test.module \tour_test_tour_load()
  2. 10 core/modules/tour/tests/tour_test/tour_test.module \tour_test_tour_load()

Implements hook_ENTITY_TYPE_load() for tour.

File

core/modules/tour/tests/tour_test/tour_test.module, line 13
Provides tests for tour module

Code

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