public function EventTypeAccessDefaultsForm::__construct in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Form/EventTypeAccessDefaultsForm.php \Drupal\rng\Form\EventTypeAccessDefaultsForm::__construct()
- 8 src/Form/EventTypeAccessDefaultsForm.php \Drupal\rng\Form\EventTypeAccessDefaultsForm::__construct()
Constructs a EventTypeAccessDefaultsForm object.
Parameters
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.
\Drupal\Core\Action\ActionManager $actionManager: The action manager.
\Drupal\Core\Condition\ConditionManager $conditionManager: The condition manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- src/
Form/ EventTypeAccessDefaultsForm.php, line 78
Class
- EventTypeAccessDefaultsForm
- Form for event type access defaults.
Namespace
Drupal\rng\FormCode
public function __construct(RedirectDestinationInterface $redirect_destination, ActionManager $actionManager, ConditionManager $conditionManager, EntityTypeManagerInterface $entity_type_manager, EventManagerInterface $event_manager) {
$this->redirectDestination = $redirect_destination;
$this->actionManager = $actionManager;
$this->conditionManager = $conditionManager;
$this->eventTypeRuleStorage = $entity_type_manager
->getStorage('rng_event_type_rule');
$this->eventManager = $event_manager;
}