Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / system / tests / modules / path_test / path_test.module
1 <?php
2
3 /**
4  * @file
5  * Helper module for the path tests.
6  */
7
8 /**
9  * Resets the path test results.
10  */
11 function path_test_reset() {
12   \Drupal::state()->set('path_test.results', []);
13 }
14
15 /**
16  * Implements hook_path_update().
17  */
18 function path_test_path_update($path) {
19   $results = \Drupal::state()->get('path_test.results') ?: [];
20   $results['hook_path_update'] = $path;
21   \Drupal::state()->set('path_test.results', $results);
22 }