class FieldStorageDefinitionEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Field/FieldStorageDefinitionEvent.php \Drupal\Core\Field\FieldStorageDefinitionEvent
Defines a base class for all field storage definition events.
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Symfony\Component\EventDispatcher\GenericEvent implements \Symfony\Component\EventDispatcher\ArrayAccess, \Symfony\Component\EventDispatcher\IteratorAggregate
- class \Drupal\Core\Field\FieldStorageDefinitionEvent
- class \Symfony\Component\EventDispatcher\GenericEvent implements \Symfony\Component\EventDispatcher\ArrayAccess, \Symfony\Component\EventDispatcher\IteratorAggregate
Expanded class hierarchy of FieldStorageDefinitionEvent
File
- core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionEvent.php, line 15 - Contains \Drupal\Core\Field\FieldStorageDefinitionEvent.
Namespace
Drupal\Core\FieldView source
class FieldStorageDefinitionEvent extends GenericEvent {
/**
* The field storage definition.
*
* @var \Drupal\Core\Field\FieldStorageDefinitionInterface
*/
protected $fieldStorageDefinition;
/**
* The original field storage definition.
*
* @var \Drupal\Core\Field\FieldStorageDefinitionInterface
*/
protected $original;
/**
* Constructs a new FieldStorageDefinitionEvent.
*
* @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_storage_definition
* The field storage definition.
* @param \Drupal\Core\Field\FieldStorageDefinitionInterface $original
* (optional) The original field storage definition. This should be passed
* only when updating the storage definition.
*/
public function __construct(FieldStorageDefinitionInterface $field_storage_definition, FieldStorageDefinitionInterface $original = NULL) {
$this->fieldStorageDefinition = $field_storage_definition;
$this->original = $original;
}
/**
* The field storage definition.
*
* @return \Drupal\Core\Field\FieldStorageDefinitionInterface
*/
public function getFieldStorageDefinition() {
return $this->fieldStorageDefinition;
}
/**
* The original field storage definition.
*
* @return \Drupal\Core\Field\FieldStorageDefinitionInterface
*/
public function getOriginal() {
return $this->original;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. | |
FieldStorageDefinitionEvent:: |
protected | property | The field storage definition. | |
FieldStorageDefinitionEvent:: |
protected | property | The original field storage definition. | |
FieldStorageDefinitionEvent:: |
public | function | The field storage definition. | |
FieldStorageDefinitionEvent:: |
public | function | The original field storage definition. | |
FieldStorageDefinitionEvent:: |
public | function |
Constructs a new FieldStorageDefinitionEvent. Overrides GenericEvent:: |
|
GenericEvent:: |
protected | property | Array of arguments. | |
GenericEvent:: |
protected | property | Event subject. | |
GenericEvent:: |
public | function | Get argument by key. | |
GenericEvent:: |
public | function | Getter for all arguments. | |
GenericEvent:: |
public | function | IteratorAggregate for iterating over the object like an array. | |
GenericEvent:: |
public | function | Getter for subject property. | |
GenericEvent:: |
public | function | Has argument. | |
GenericEvent:: |
public | function | ArrayAccess has argument. | |
GenericEvent:: |
public | function | ArrayAccess for argument getter. | |
GenericEvent:: |
public | function | ArrayAccess for argument setter. | |
GenericEvent:: |
public | function | ArrayAccess for unset argument. | |
GenericEvent:: |
public | function | Add argument to event. | |
GenericEvent:: |
public | function | Set args property. |