public function PhotosController::__construct in Album Photos 8.4
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
File
- src/
Controller/ PhotosController.php, line 40
Class
- PhotosController
- View albums and recent images.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, RendererInterface $renderer) {
$this->connection = $connection;
$this->renderer = $renderer;
}