You are here

public function EntityFieldAccessEvent::__construct in Hook Event Dispatcher 8

EntityFieldAccessEvent constructor.

Parameters

string $operation: The operation.

\Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition: The field definition.

\Drupal\Core\Session\AccountInterface $account: The account interface.

\Drupal\Core\Field\FieldItemListInterface|null $items: The field item list interface.

File

src/Event/EntityField/EntityFieldAccessEvent.php, line 66

Class

EntityFieldAccessEvent
Class EntityInsertEvent.

Namespace

Drupal\hook_event_dispatcher\Event\EntityField

Code

public function __construct($operation, FieldDefinitionInterface $fieldDefinition, AccountInterface $account, FieldItemListInterface $items = NULL) {
  $this->operation = $operation;
  $this->fieldDefinition = $fieldDefinition;
  $this->account = $account;
  $this->items = $items;
}