public function PhotosRearrangeController::__construct in Album Photos 8.4
Same name and namespace in other branches
- 8.5 src/Controller/PhotosRearrangeController.php \Drupal\photos\Controller\PhotosRearrangeController::__construct()
- 6.0.x src/Controller/PhotosRearrangeController.php \Drupal\photos\Controller\PhotosRearrangeController::__construct()
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.
\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/ PhotosRearrangeController.php, line 75
Class
- PhotosRearrangeController
- Re-arrange view controller.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_manager, RendererInterface $renderer, RequestStack $request_stack, RouteMatchInterface $route_match) {
$this->connection = $connection;
$this->entityTypeManager = $entity_manager;
$this->renderer = $renderer;
$this->requestStack = $request_stack;
$this->routeMatch = $route_match;
}