You are here

public function TermSelection::entityQueryAlter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php \Drupal\taxonomy\Plugin\EntityReferenceSelection\TermSelection::entityQueryAlter()

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

\Drupal\Core\Database\Query\SelectInterface $query: A Select Query object.

Overrides DefaultSelection::entityQueryAlter

File

core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php, line 32
Contains \Drupal\taxonomy\Plugin\EntityReferenceSelection\TermSelection.

Class

TermSelection
Provides specific access control for the taxonomy_term entity type.

Namespace

Drupal\taxonomy\Plugin\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $query) {

  // @todo: How to set access, as vocabulary is now config?
}