function ContextDefinition::__construct

Same name in this branch
  1. 8.x-3.x src/Context/Annotation/ContextDefinition.php \Drupal\rules\Context\Annotation\ContextDefinition::__construct()

Overrides ContextDefinition::__construct

File

src/Context/ContextDefinition.php, line 57

Class

ContextDefinition
Extends the core context definition class with useful methods.

Namespace

Drupal\rules\Context

Code

public function __construct($data_type = 'any', $label = NULL, $required = TRUE, $multiple = FALSE, $description = NULL, $default_value = NULL) {
    $this->dataType = $data_type;
    $this->label = $label;
    $this->isRequired = $required;
    $this->isMultiple = $multiple;
    $this->description = $description;
    $this->defaultValue = $default_value;
}