class EntityTypeEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityTypeEvent.php \Drupal\Core\Entity\EntityTypeEvent
Defines a base class for all entity type events.
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Symfony\Component\EventDispatcher\GenericEvent implements \Symfony\Component\EventDispatcher\ArrayAccess, \Symfony\Component\EventDispatcher\IteratorAggregate
- class \Drupal\Core\Entity\EntityTypeEvent
- class \Symfony\Component\EventDispatcher\GenericEvent implements \Symfony\Component\EventDispatcher\ArrayAccess, \Symfony\Component\EventDispatcher\IteratorAggregate
Expanded class hierarchy of EntityTypeEvent
1 file declares its use of EntityTypeEvent
- ViewsEntitySchemaSubscriberIntegrationTest.php in core/
modules/ views/ src/ Tests/ EventSubscriber/ ViewsEntitySchemaSubscriberIntegrationTest.php - Contains \Drupal\views\Tests\EventSubscriber\ViewsEntitySchemaSubscriberIntegrationTest.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeEvent.php, line 15 - Contains \Drupal\Core\Entity\EntityTypeEvent.
Namespace
Drupal\Core\EntityView source
class EntityTypeEvent extends GenericEvent {
/**
* The entity type.
*
* @var \Drupal\Core\Entity\EntityTypeInterface
*/
protected $entityType;
/**
* The original entity type.
*
* @var \Drupal\Core\Entity\EntityTypeInterface
*/
protected $original;
/**
* Constructs a new EntityTypeEvent.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The field storage definition.
* @param \Drupal\Core\Entity\EntityTypeInterface $original
* (optional) The original entity type. This should be passed only when
* updating the entity type.
*/
public function __construct(EntityTypeInterface $entity_type, EntityTypeInterface $original = NULL) {
$this->entityType = $entity_type;
$this->original = $original;
}
/**
* The entity type the event refers to.
*
* @return \Drupal\Core\Entity\EntityTypeInterface
*/
public function getEntityType() {
return $this->entityType;
}
/**
* The original entity type.
*
* @return \Drupal\Core\Entity\EntityTypeInterface
*/
public function getOriginal() {
return $this->original;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTypeEvent:: |
protected | property | The entity type. | |
EntityTypeEvent:: |
protected | property | The original entity type. | |
EntityTypeEvent:: |
public | function | The entity type the event refers to. | |
EntityTypeEvent:: |
public | function | The original entity type. | |
EntityTypeEvent:: |
public | function |
Constructs a new EntityTypeEvent. Overrides GenericEvent:: |
|
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. | |
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. |