1 path_pattern.test | PathPatternTestHelper::backdropGetTermByName($name, $reset = FALSE) |
File
- core/
modules/ path/ tests/ path_pattern.test, line 124 - Functionality tests for automatic path generation.
Class
- PathPatternTestHelper
- Helper test class with some added functions for testing.
Code
function backdropGetTermByName($name, $reset = FALSE) {
$terms = entity_load('taxonomy_term', array(), array('name' => $name), $reset);
return !empty($terms) ? reset($terms) : FALSE;
}