Issue #1919016 by dawehner, Berdir: Remove term_access() tag in TermStorageController::buildQuery().
parent
1a62029115
commit
257ae98f65
|
@ -320,8 +320,7 @@ class DatabaseStorageController implements EntityStorageControllerInterface {
|
|||
* being loaded needs to be augmented with additional data from another
|
||||
* table, such as loading node type into comments or vocabulary machine name
|
||||
* into terms, however it can also support $conditions on different tables.
|
||||
* See Drupal\comment\CommentStorageController::buildQuery() or
|
||||
* Drupal\taxonomy\TermStorageController::buildQuery() for examples.
|
||||
* See Drupal\comment\CommentStorageController::buildQuery() for an example.
|
||||
*
|
||||
* @param array|null $ids
|
||||
* An array of entity IDs, or NULL to load all entities.
|
||||
|
|
|
@ -32,15 +32,6 @@ class TermStorageController extends DatabaseStorageController {
|
|||
return $entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides Drupal\Core\Entity\DatabaseStorageController::buildQuery().
|
||||
*/
|
||||
protected function buildQuery($ids, $revision_id = FALSE) {
|
||||
$query = parent::buildQuery($ids, $revision_id);
|
||||
$query->addTag('term_access');
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides Drupal\Core\Entity\DatabaseStorageController::buildPropertyQuery().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue