public function EventTypeForm::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Form/EventTypeForm.php \Drupal\rng\Form\EventTypeForm::__construct()
- 3.x src/Form/EventTypeForm.php \Drupal\rng\Form\EventTypeForm::__construct()
Constructs a EventTypeForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.
\Drupal\rng\RngConfigurationInterface $rng_configuration: The RNG configuration service.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- src/
Form/ EventTypeForm.php, line 72
Class
- EventTypeForm
- Form controller for event config entities.
Namespace
Drupal\rng\FormCode
public function __construct(EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, EntityDisplayRepositoryInterface $entity_display_repository, RngConfigurationInterface $rng_configuration, EventManagerInterface $event_manager) {
$this->entityManager = $entity_manager;
$this->moduleHandler = $module_handler;
$this->entityDisplayRepository = $entity_display_repository;
$this->rngConfiguration = $rng_configuration;
$this->eventManager = $event_manager;
}