public function PhotosUserImagesController::__construct in Album Photos 8.4
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\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/ PhotosUserImagesController.php, line 95
Class
- PhotosUserImagesController
- Content controller for user images.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, CurrentPathStack $current_path, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_manager, RendererInterface $renderer, RequestStack $request_stack, RouteMatchInterface $route_match) {
$this->connection = $connection;
$this->currentPath = $current_path;
$this->dateFormatter = $date_formatter;
$this->entityTypeManager = $entity_manager;
$this->renderer = $renderer;
$this->requestStack = $request_stack;
$this->routeMatch = $route_match;
}