public function PhotosImageViewController::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Controller/PhotosImageViewController.php \Drupal\photos\Controller\PhotosImageViewController::__construct()
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
Overrides EntityViewController::__construct
File
- src/
Controller/ PhotosImageViewController.php, line 72
Class
- PhotosImageViewController
- Image view controller.
Namespace
Drupal\photos\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, Connection $connection, LibraryDiscoveryInterface $library_discovery, RouteMatchInterface $route_match, EntityRepositoryInterface $entity_repository = NULL) {
parent::__construct($entity_type_manager, $renderer);
$this->connection = $connection;
$this->libraryDiscovery = $library_discovery;
$this->routeMatch = $route_match;
$this->entityRepository = $entity_repository;
}