You are here

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

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

Get the event entity.

Return value

\Drupal\Core\Entity\EntityInterface The event entity.

Overrides EventMetaInterface::getEvent

5 calls to EventMeta::getEvent()
EventMeta::createDefaultEventMessages in src/EventMeta.php
Create messages for Event from Default messages for this Event Type.
EventMeta::getDateString in src/EventMeta.php
@inheritDoc
EventMeta::getDefaultRules in src/EventMeta.php
Gets site default access rules and associated conditions and actions.
EventMeta::isPastEvent in src/EventMeta.php
@inheritDoc
EventMeta::trigger in src/EventMeta.php
Manually triggers rules for this event.

File

src/EventMeta.php, line 150

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function getEvent() {
  return $this->entity;
}