public function PhotosUserAlbumsController::__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\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
File
- src/
Controller/ PhotosUserAlbumsController.php, line 62
Class
- PhotosUserAlbumsController
- Display user albums.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_manager, RendererInterface $renderer, RouteMatchInterface $route_match) {
$this->connection = $connection;
$this->entityTypeManager = $entity_manager;
$this->renderer = $renderer;
$this->routeMatch = $route_match;
}