You are here

public function Condition::__construct in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Entity/Condition.php \Drupal\business_rules\Entity\Condition::__construct()

Constructs an Entity object.

Parameters

array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.

string $entity_type: The type of the entity to create.

Overrides BusinessRulesItemBase::__construct

File

src/Entity/Condition.php, line 68

Class

Condition
Defines the Condition entity.

Namespace

Drupal\business_rules\Entity

Code

public function __construct(array $values, $entity_type = 'business_rules_condition') {
  parent::__construct($values, $entity_type);
}