You are here

public function FilterDependencyCalculationFieldsEvent::__construct in Dependency Calculation 8

FilterDependencyCalculationFieldsEvent constructor.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.

\Drupal\Core\Field\FieldItemListInterface ...$fields: The fields.

File

src/Event/FilterDependencyCalculationFieldsEvent.php, line 36

Class

FilterDependencyCalculationFieldsEvent
The FilterDependencyCalculationFieldsEvent event.

Namespace

Drupal\depcalc\Event

Code

public function __construct(ContentEntityInterface $entity, FieldItemListInterface ...$fields) {
  $this->entity = $entity;
  $this->fields = $fields;
}