public function PhotosEditController::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Controller/PhotosEditController.php \Drupal\photos\Controller\PhotosEditController::__construct()
- 8.4 src/Controller/PhotosEditController.php \Drupal\photos\Controller\PhotosEditController::__construct()
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
File
- src/
Controller/ PhotosEditController.php, line 94
Class
- PhotosEditController
- Edit images and image details.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, CurrentPathStack $current_path, FormBuilderInterface $form_builder, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RequestStack $request_stack, RouteMatchInterface $route_match) {
$this->connection = $connection;
$this->currentPath = $current_path;
$this->formBuilder = $form_builder;
$this->moduleHandler = $module_handler;
$this->renderer = $renderer;
$this->requestStack = $request_stack;
$this->routeMatch = $route_match;
}