function path_test_path_update in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/path_test/path_test.module \path_test_path_update()
Implements hook_path_update().
File
- core/
modules/ system/ tests/ modules/ path_test/ path_test.module, line 18 - Helper module for the path tests.
Code
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);
}