public function EventManager::isEvent in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/EventManager.php \Drupal\rng\EventManager::isEvent()
- 3.x src/EventManager.php \Drupal\rng\EventManager::isEvent()
Determines if an entity is an event.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An event entity.
Return value
boolean Whether the entity is an event.
Overrides EventManagerInterface::isEvent
1 call to EventManager::isEvent()
- EventManager::getMeta in src/
EventManager.php - Get the meta instance for an event.
File
- src/
EventManager.php, line 63
Class
- EventManager
- Event manager for RNG.
Namespace
Drupal\rngCode
public function isEvent(EntityInterface $entity) {
return (bool) $this
->eventType($entity
->getEntityTypeId(), $entity
->bundle());
}