You are here

public function EntityFormModeBase::__construct in Form mode manager 8

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\EntityTypeManagerInterface $entity_manager: The entity type 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.

File

src/Controller/EntityFormModeBase.php, line 109

Class

EntityFormModeBase
Controller for entity form mode support.

Namespace

Drupal\form_mode_manager\Controller

Code

public function __construct(RendererInterface $renderer, AccountInterface $account, FormModeManagerInterface $form_mode_manager, EntityTypeManagerInterface $entity_manager, EntityFormBuilderInterface $entity_form_builder, EntityRoutingMapManager $plugin_routes_manager, FormBuilderInterface $form_builder) {
  $this->renderer = $renderer;
  $this->account = $account;
  $this->formModeManager = $form_mode_manager;
  $this->entityTypeManager = $entity_manager;
  $this->entityFormBuilder = $entity_form_builder;
  $this->entityRoutingMap = $plugin_routes_manager;
  $this->formBuilder = $form_builder;
}