You are here

public function RelationshipFieldValueEvent::__construct in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/src/Event/RelationshipFieldValueEvent.php \Drupal\entity_share_client\Event\RelationshipFieldValueEvent::__construct()
  2. 8 modules/entity_share_client/src/Event/RelationshipFieldValueEvent.php \Drupal\entity_share_client\Event\RelationshipFieldValueEvent::__construct()

Constructs a new RelationshipFieldValueEvent.

Parameters

\Drupal\Core\Field\FieldItemListInterface $field: A FieldItemList object.

array $field_value: An array of the field value to alter.

File

modules/entity_share_client/src/Event/RelationshipFieldValueEvent.php, line 39

Class

RelationshipFieldValueEvent
Defines a RelationshipFieldValueEvent event.

Namespace

Drupal\entity_share_client\Event

Code

public function __construct(FieldItemListInterface $field, array $field_value) {
  $this->field = $field;
  $this->fieldValue = $field_value;
}