You are here

path_test.module in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/system/tests/modules/path_test/path_test.module

Helper module for the path tests.

File

core/modules/system/tests/modules/path_test/path_test.module
View 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

Namesort descending Description
path_test_path_update Implements hook_path_update().
path_test_reset Resets the path test results.