public function FormModeManagerEntityController::__construct in Form mode manager 8.2
Constructs a EntityFormModeController object.
Parameters
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Session\AccountInterface $account: The current user.
\Drupal\form_mode_manager\FormModeManagerInterface $form_mode_manager: The form mode manager.
\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder service.
\Drupal\form_mode_manager\EntityRoutingMapManager $plugin_routes_manager: Plugin EntityRoutingMap to retrieve entity form operation routes.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Controller/ FormModeManagerEntityController.php, line 106
Class
- FormModeManagerEntityController
- Generic Controller for entity using form mode manager routing.
Namespace
Drupal\form_mode_manager\ControllerCode
public function __construct(RendererInterface $renderer, AccountInterface $account, FormModeManagerInterface $form_mode_manager, EntityFormBuilderInterface $entity_form_builder, EntityRoutingMapManager $plugin_routes_manager, FormBuilderInterface $form_builder, EntityTypeManagerInterface $entity_type_manager) {
$this->renderer = $renderer;
$this->account = $account;
$this->formModeManager = $form_mode_manager;
$this->entityFormBuilder = $entity_form_builder;
$this->entityRoutingMap = $plugin_routes_manager;
$this->formBuilder = $form_builder;
$this->entityTypeManager = $entity_type_manager;
}