1 taxonomy.entity.inc | protected TaxonomyTermController::cacheGet($ids, $conditions = array()) |
Overrides EntityDatabaseStorageController::cacheGet().
Overrides DefaultEntityController::cacheGet
File
- core/
modules/ taxonomy/ taxonomy.entity.inc, line 220 - Entity classes and controllers for Taxonomy module.
Class
- TaxonomyTermController
- Controller class for taxonomy terms.
Code
protected function cacheGet($ids, $conditions = array()) {
$terms = parent::cacheGet($ids, $conditions);
// Name matching is case insensitive, note that with some collations
// LOWER() and backdrop_strtolower() may return different results.
foreach ($terms as $term) {
if (isset($conditions['name']) && backdrop_strtolower($conditions['name'] != backdrop_strtolower($term->name))) {
unset($terms[$term->tid]);
}
}
return $terms;
}