You are here

public function PhotosEditController::__construct in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 src/Controller/PhotosEditController.php \Drupal\photos\Controller\PhotosEditController::__construct()
  2. 6.0.x 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 96

Class

PhotosEditController
Edit images and image details.

Namespace

Drupal\photos\Controller

Code

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;
}