Condition.php
Same filename in this branch
- 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Condition.php
- 9 core/lib/Drupal/Core/Config/Entity/Query/Condition.php
- 9 core/lib/Drupal/Core/Database/Query/Condition.php
- 9 core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
- 9 core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
- 9 core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
- 9 core/lib/Drupal/Core/Condition/Annotation/Condition.php
Same filename in other branches
- 8.9.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
- 8.9.x core/lib/Drupal/Core/Database/Query/Condition.php
- 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
- 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
- 8.9.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
- 8.9.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
- 8.9.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
- 10 core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Condition.php
- 10 core/lib/Drupal/Core/Config/Entity/Query/Condition.php
- 10 core/lib/Drupal/Core/Database/Query/Condition.php
- 10 core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
- 10 core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
- 10 core/lib/Drupal/Core/Entity/Query/Null/Condition.php
- 10 core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
- 10 core/lib/Drupal/Core/Condition/Attribute/Condition.php
- 10 core/lib/Drupal/Core/Condition/Annotation/Condition.php
- 11.x core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Condition.php
- 11.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
- 11.x core/lib/Drupal/Core/Database/Query/Condition.php
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
- 11.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
- 11.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
- 11.x core/lib/Drupal/Core/Condition/Attribute/Condition.php
- 11.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
Namespace
Drupal\Core\Entity\Query\NullFile
-
core/
lib/ Drupal/ Core/ Entity/ Query/ Null/ Condition.php
View source
<?php
namespace Drupal\Core\Entity\Query\Null;
use Drupal\Core\Entity\Query\ConditionBase;
/**
* Defines the condition class for the null entity query.
*/
class Condition extends ConditionBase {
/**
* {@inheritdoc}
*/
public function compile($query) {
}
/**
* {@inheritdoc}
*/
public function exists($field, $langcode = NULL) {
return $this->condition($field, NULL, 'IS NOT NULL', $langcode);
}
/**
* {@inheritdoc}
*/
public function notExists($field, $langcode = NULL) {
return $this->condition($field, NULL, 'IS NULL', $langcode);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Condition | Defines the condition class for the null entity query. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.