You are here

public function Registration::getEventMeta in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getEventMeta()

Get the event meta object for this event.

Return value

\Drupal\rng\EventMetaInterface The event meta entity.

Overrides RegistrationInterface::getEventMeta

3 calls to Registration::getEventMeta()
Registration::getDateString in src/Entity/Registration.php
@inheritDoc
Registration::preSave in src/Entity/Registration.php
Acts on an entity before the presave hook is invoked.
Registration::setRegistrantQty in src/Entity/Registration.php
@inheritDoc

File

src/Entity/Registration.php, line 84

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getEventMeta() {

  // Add group defaults event settings.

  /* @var $event_manager \Drupal\rng\EventManagerInterface */
  $event_manager = \Drupal::service('rng.event_manager');
  return $event_manager
    ->getMeta($this
    ->getEvent());
}