You are here

public function EventManagerInterface::getMeta in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/EventManagerInterface.php \Drupal\rng\EventManagerInterface::getMeta()
  2. 3.x src/EventManagerInterface.php \Drupal\rng\EventManagerInterface::getMeta()

Get the meta instance for an event.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An event entity.

Return value

\Drupal\rng\EventMetaInterface|null An event meta object.

Throws

\Drupal\rng\Exception\InvalidEventException If the $entity is not an event.

1 method overrides EventManagerInterface::getMeta()
EventManager::getMeta in src/EventManager.php
Get the meta instance for an event.

File

src/EventManagerInterface.php, line 87

Class

EventManagerInterface
Event manager for RNG.

Namespace

Drupal\rng

Code

public function getMeta(EntityInterface $entity);