You are here

public function EventMeta::getEventType in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::getEventType()
  2. 3.x src/EventMeta.php \Drupal\rng\EventMeta::getEventType()

Get the event type for the event.

Return value

\Drupal\rng\EventTypeInterface The event type for the event.

Overrides EventMetaInterface::getEventType

2 calls to EventMeta::getEventType()
EventMeta::getCreatableIdentityTypes in src/EventMeta.php
Get identity types which can be created for this event.
EventMeta::getIdentityTypes in src/EventMeta.php
Get identity types which can be referenced for this event.

File

src/EventMeta.php, line 121

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function getEventType() {
  return $this->eventManager
    ->eventType($this->entity
    ->getEntityTypeId(), $this->entity
    ->bundle());
}