You are here

public function RegistrationGroupSelection::entityQueryAlter in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityReferenceSelection/RegistrationGroupSelection.php \Drupal\rng\Plugin\EntityReferenceSelection\RegistrationGroupSelection::entityQueryAlter()
  2. 8 src/Plugin/EntityReferenceSelection/RegistrationGroupSelection.php \Drupal\rng\Plugin\EntityReferenceSelection\RegistrationGroupSelection::entityQueryAlter()

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

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

Overrides SelectionPluginBase::entityQueryAlter

File

src/Plugin/EntityReferenceSelection/RegistrationGroupSelection.php, line 40

Class

RegistrationGroupSelection
Provides specific access control for registration groups.

Namespace

Drupal\rng\Plugin\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $query) {

  // @todo, allow global groups via query alter
  // ->condition('event__target_type', NULL, 'IS NULL')
  // ->condition('event__target_id', NULL, 'IS NULL');
}