You are here

public function EventMeta::getEventType in RNG - Events and Registrations 3.x

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

Get the event type for the event.

Return value

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

Overrides EventMetaInterface::getEventType

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

File

src/EventMeta.php, line 157

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

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