W3cubDocs

/Drupal 8

public function FieldStorageDefinitionEvent::__construct

public FieldStorageDefinitionEvent::__construct(FieldStorageDefinitionInterface $field_storage_definition, FieldStorageDefinitionInterface $original = NULL)

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.

Overrides GenericEvent::__construct

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldStorageDefinitionEvent.php/function/FieldStorageDefinitionEvent::__construct/8.1.x