path_test.module in Zircon Profile 8.0
Same filename and directory in other branches
Helper module for the path tests.
File
core/modules/system/tests/modules/path_test/path_test.moduleView source
<?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);
}
Functions
Name | Description |
---|---|
path_test_path_update | Implements hook_path_update(). |
path_test_reset | Resets the path test results. |