public function TermSelection::entityQueryAlter

Overrides SelectionBase::entityQueryAlter().

Overrides SelectionBase::entityQueryAlter

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/entity_reference/selection/TermSelection.php, line 32
Contains \Drupal\taxonomy\Plugin\entity_reference\selection\TermSelection.

Class

TermSelection
Provides specific access control for the taxonomy_term entity type.

Namespace

Drupal\taxonomy\Plugin\entity_reference\selection

Code

public function entityQueryAlter(SelectInterface $query) {

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