abstract class ConditionBase in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Query/ConditionBase.php \Drupal\Core\Entity\Query\ConditionBase
- 10 core/lib/Drupal/Core/Entity/Query/ConditionBase.php \Drupal\Core\Entity\Query\ConditionBase
Defines a common base class for all entity condition implementations.
Hierarchy
- class \Drupal\Core\Entity\Query\ConditionFundamentals
- class \Drupal\Core\Entity\Query\ConditionBase implements ConditionInterface
Expanded class hierarchy of ConditionBase
3 files declare their use of ConditionBase
- Condition.php in core/
lib/ Drupal/ Core/ Config/ Entity/ Query/ Condition.php - Condition.php in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Condition.php - Condition.php in core/
lib/ Drupal/ Core/ Entity/ Query/ Null/ Condition.php
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ ConditionBase.php, line 8
Namespace
Drupal\Core\Entity\QueryView source
abstract class ConditionBase extends ConditionFundamentals implements ConditionInterface {
/**
* {@inheritdoc}
*/
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) {
$this->conditions[] = [
'field' => $field,
'value' => $value,
'operator' => $operator,
'langcode' => $langcode,
];
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConditionBase:: |
public | function |
Adds a condition. Overrides ConditionInterface:: |
|
ConditionFundamentals:: |
protected | property | Array of conditions. | |
ConditionFundamentals:: |
protected | property | The conjunction of this condition group. The value is one of the following: | |
ConditionFundamentals:: |
protected | property | List of potential namespaces of the classes belonging to this condition. | |
ConditionFundamentals:: |
protected | property | The query this condition belongs to. | 1 |
ConditionFundamentals:: |
public | function | ||
ConditionFundamentals:: |
public | function | ||
ConditionFundamentals:: |
public | function | ||
ConditionFundamentals:: |
public | function | Implements the magic __clone function. | |
ConditionFundamentals:: |
public | function | Constructs a Condition object. | |
ConditionInterface:: |
public | function | Compiles this conditional clause. | |
ConditionInterface:: |
public | function | Queries for the existence of a field. | |
ConditionInterface:: |
public | function | Queries for the nonexistence of a field. |