You are here

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

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

Get event type config for an event bundle.

Use this to test whether an entity bundle is an event type.

Parameters

string $entity_type: An entity type ID.

string $bundle: A bundle ID.

Return value

\Drupal\rng\Entity\EventTypeInterface|null

1 method overrides EventManagerInterface::eventType()
EventManager::eventType in src/EventManager.php
Get event type config for an event bundle.

File

src/EventManagerInterface.php, line 112

Class

EventManagerInterface
Event manager for RNG.

Namespace

Drupal\rng

Code

public function eventType($entity_type, $bundle);