public function FieldStorageDefinitionEvent::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\FieldCode
public function __construct(FieldStorageDefinitionInterface $field_storage_definition, FieldStorageDefinitionInterface $original = NULL) {
$this->fieldStorageDefinition = $field_storage_definition;
$this->original = $original;
}