Skip to content
Snippets Groups Projects

Issue #3253347: Allow to use several bundles in entity_lookup plugin

2 files
+ 44
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -32,7 +32,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* values. Defaults to '=' for scalar values and 'IN' for arrays.
* - bundle_key: (optional) The name of the bundle field on the entity type
* being queried.
* - bundle: (optional) The value to query for the bundle.
* - bundle: (optional) The value to query for the bundle - can be a string or
* an array.
* - access_check: (optional) Indicates if access to the entity for this user
* will be checked. Default is true.
* - ignore_case: (optional) Whether to ignore case in the query. Defaults to
@@ -316,7 +317,7 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn
}
if ($this->lookupBundleKey) {
$query->condition($this->lookupBundleKey, $this->lookupBundle);
$query->condition($this->lookupBundleKey, (array) $this->lookupBundle, 'IN');
}
$results = $query->execute();
Loading