public function EntityBrowserFormController::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Controllers/EntityBrowserFormController.php \Drupal\entity_browser\Controllers\EntityBrowserFormController::__construct()
Constructs Entity browser form controller.
Parameters
\Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver: The argument resolver.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.
\Drupal\Core\Routing\RouteMatchInterface $route_match: Current route match service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.
\Symfony\Component\HttpFoundation\Request $request: Current request.
Overrides HtmlFormController::__construct
File
- src/
Controllers/ EntityBrowserFormController.php, line 58
Class
- EntityBrowserFormController
- Standalone entity browser page.
Namespace
Drupal\entity_browser\ControllersCode
public function __construct(ArgumentResolverInterface $argument_resolver, FormBuilderInterface $form_builder, ClassResolverInterface $class_resolver, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, Request $request) {
parent::__construct($argument_resolver, $form_builder, $class_resolver);
$this->currentRouteMatch = $route_match;
$this->browserStorage = $entity_type_manager
->getStorage('entity_browser');
$this->request = $request;
$this->formBuilder = $form_builder;
}