You are here

protected function IngredientSelection::buildEntityQuery in Recipe 8.2

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

File

modules/ingredient/src/Plugin/EntityReferenceSelection/IngredientSelection.php, line 23

Class

IngredientSelection
Provides specific access control for the ingredient entity type.

Namespace

Drupal\ingredient\Plugin\EntityReferenceSelection

Code

protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
  $query = parent::buildEntityQuery($match, $match_operator);
  return $query;
}