Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 6 |
| ConditionBase | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
| condition | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Core\Entity\Query\ConditionBase. | |
| */ | |
| namespace Drupal\Core\Entity\Query; | |
| /** | |
| * Defines a common base class for all entity condition implementations. | |
| */ | |
| abstract class ConditionBase extends ConditionFundamentals implements ConditionInterface { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) { | |
| $this->conditions[] = array( | |
| 'field' => $field, | |
| 'value' => $value, | |
| 'operator' => $operator, | |
| 'langcode' => $langcode, | |
| ); | |
| return $this; | |
| } | |
| } |