function FieldStorageDefinitionEvent::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionEvent.php \Drupal\Core\Field\FieldStorageDefinitionEvent::__construct()
  2. 10 core/lib/Drupal/Core/Field/FieldStorageDefinitionEvent.php \Drupal\Core\Field\FieldStorageDefinitionEvent::__construct()
  3. 11.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvent.php \Drupal\Core\Field\FieldStorageDefinitionEvent::__construct()

Constructs a new FieldStorageDefinitionEvent.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $field_storage_definition: The field storage definition.

\Drupal\Core\Field\FieldStorageDefinitionInterface $original: (optional) The original field storage definition. This should be passed only when updating the storage definition.

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionEvent.php, line 35

Class

FieldStorageDefinitionEvent
Defines a base class for all field storage definition events.

Namespace

Drupal\Core\Field

Code

public function __construct(FieldStorageDefinitionInterface $field_storage_definition, FieldStorageDefinitionInterface $original = NULL) {
    $this->fieldStorageDefinition = $field_storage_definition;
    $this->original = $original;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.