public function Query::condition
public Query::condition($property, $value = NULL, $operator = NULL, $langcode = NULL)
Overrides \Drupal\Core\Entity\Query\QueryBase::condition().
Additional to the syntax defined in the QueryInterface you can use placeholders (*) to match all keys of an subarray. Let's take the follow yaml file as example:
level1: level2a: level3: 1 level2b: level3: 2
Then you can filter out via $query->condition('level1.*.level3', 1).
Overrides QueryBase::condition
File
- core/lib/Drupal/Core/Config/Entity/Query/Query.php, line 73
Class
- Query
- Defines the entity query for configuration entities.
Namespace
Drupal\Core\Config\Entity\QueryCode
public function condition($property, $value = NULL, $operator = NULL, $langcode = NULL) { return parent::condition($property, $value, $operator, $langcode); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!Query!Query.php/function/Query::condition/8.1.x