You are here

public function FilterConditionsEvent::__construct in Commerce Core 8.2

Constructs a new FilterConditionsEvent object.

Parameters

array $definitions: The condition definitions.

string $parent_entity_type_id: The parent entity type ID.

File

src/Event/FilterConditionsEvent.php, line 36

Class

FilterConditionsEvent
Defines the event for filtering the available conditions.

Namespace

Drupal\commerce\Event

Code

public function __construct(array $definitions, $parent_entity_type_id) {
  $this->definitions = $definitions;
  $this->parentEntityTypeId = $parent_entity_type_id;
}