1 date_field.test | public DateFieldTokenTestCase::mapTokenNames($type, array $tokens = array()) |
Helper function that creates a properly formatted token map.
File
- core/
modules/ date/ tests/ date_field.test, line 442 - Basic functions for Date tests.
Class
Code
public function mapTokenNames($type, array $tokens = array()) {
$return = array();
foreach ($tokens as $token) {
$return[$token] = "[$type:$token]";
}
return $return;
}