Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 7 |
| FieldStorageDefinitionEvent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 7 |
| __construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| getFieldStorageDefinition | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getOriginal | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Core\Field\FieldStorageDefinitionEvent. | |
| */ | |
| namespace Drupal\Core\Field; | |
| use Symfony\Component\EventDispatcher\GenericEvent; | |
| /** | |
| * Defines a base class for all field storage definition events. | |
| */ | |
| 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; | |
| } | |
| } |