protected function RNGSelectionBase::buildEntityQuery in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/EntityReferenceSelection/RNGSelectionBase.php \Drupal\rng\Plugin\EntityReferenceSelection\RNGSelectionBase::buildEntityQuery()
- 8 src/Plugin/EntityReferenceSelection/RNGSelectionBase.php \Drupal\rng\Plugin\EntityReferenceSelection\RNGSelectionBase::buildEntityQuery()
Builds an EntityQuery to get referenceable entities.
Parameters
string|null $match: (Optional) Text to match the label against. Defaults to NULL.
string $match_operator: (Optional) The operation the matching should be done with. Defaults to "CONTAINS".
Return value
\Drupal\Core\Entity\Query\QueryInterface The EntityQuery object with the basic conditions and sorting applied to it.
Overrides DefaultSelection::buildEntityQuery
1 call to RNGSelectionBase::buildEntityQuery()
- UserRNGSelection::buildEntityQuery in src/
Plugin/ EntityReferenceSelection/ UserRNGSelection.php - Builds an EntityQuery to get referenceable entities.
1 method overrides RNGSelectionBase::buildEntityQuery()
- UserRNGSelection::buildEntityQuery in src/
Plugin/ EntityReferenceSelection/ UserRNGSelection.php - Builds an EntityQuery to get referenceable entities.
File
- src/
Plugin/ EntityReferenceSelection/ RNGSelectionBase.php, line 116
Class
- RNGSelectionBase
- Base RNG selection plugin.
Namespace
Drupal\rng\Plugin\EntityReferenceSelectionCode
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
$query
->addTag('rng_register');
$this
->removeDuplicateRegistrants($query);
return $query;
}