1 path_pattern.test PathPatternTokenTestCase::mapTokenNames($type, array $tokens = array())

File

core/modules/path/tests/path_pattern.test, line 1112
Functionality tests for automatic path generation.

Class

PathPatternTokenTestCase
Token functionality tests.

Code

function mapTokenNames($type, array $tokens = array()) {
  $return = array();
  foreach ($tokens as $token) {
    $return[$token] = "[$type:$token]";
  }
  return $return;
}