function tour_test_tour_load

Same name 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()
  3. 11.x 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

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';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.