public EntityTypeEvent::__construct(EntityTypeInterface $entity_type, EntityTypeInterface $original = NULL)
Constructs a new EntityTypeEvent.
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The field storage definition.
\Drupal\Core\Entity\EntityTypeInterface $original: (optional) The original entity type. This should be passed only when updating the entity type.
Overrides GenericEvent::__construct
public function __construct(EntityTypeInterface $entity_type, EntityTypeInterface $original = NULL) { $this->entityType = $entity_type; $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!Entity!EntityTypeEvent.php/function/EntityTypeEvent::__construct/8.1.x