Helper module for the path tests.
<?php /** * @file * Helper module for the path tests. */ /** * Resets the path test results. */ function path_test_reset() { Drupal::state() ->set('path_test.results', array()); } /** * Implements hook_path_update(). */ function path_test_path_update($path) { $results = Drupal::state() ->get('path_test.results') ?: array(); $results['hook_path_update'] = $path; Drupal::state() ->set('path_test.results', $results); }