1 EntityReferenceSelectionHandlerGeneric.inc protected EntityReferenceSelectionHandlerGeneric::reAlterQuery(SelectQueryInterface $query, $tag, $base_table)

Helper method: pass a query to the alteration system again.

This allow Entity Reference to add a tag to an existing query, to ask access control mechanisms to alter it again.

File

core/modules/entityreference/plugins/selection/EntityReferenceSelectionHandlerGeneric.inc, line 316
Generic Entity handler.

Class

EntityReferenceSelectionHandlerGeneric
@file Generic Entity handler.

Code

protected function reAlterQuery(SelectQueryInterface $query, $tag, $base_table) {
  $query->addTag($tag);
  $query->addMetaData('base_table', $base_table);
  backdrop_alter(array('query', 'query_' . $tag), $query);
}