You are here

public function PhotosImageController::__construct in Album Photos 8.4

Constructor.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/Controller/PhotosImageController.php, line 64

Class

PhotosImageController
Image view controller.

Namespace

Drupal\photos\Controller

Code

public function __construct(Connection $connection, EntityTypeManagerInterface $entity_manager, LibraryDiscoveryInterface $library_discovery, RouteMatchInterface $route_match) {
  $this->connection = $connection;
  $this->entityTypeManager = $entity_manager;
  $this->libraryDiscovery = $library_discovery;
  $this->routeMatch = $route_match;
}