public function PhotosImagesRecentController::__construct in Album Photos 8.4
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\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.
File
- src/
Controller/ PhotosImagesRecentController.php, line 72
Class
- PhotosImagesRecentController
- Controller to display recent images.
Namespace
Drupal\photos\ControllerCode
public function __construct(Connection $connection, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_manager, RendererInterface $renderer, RequestStack $request_stack) {
$this->connection = $connection;
$this->dateFormatter = $date_formatter;
$this->entityTypeManager = $entity_manager;
$this->renderer = $renderer;
$this->requestStack = $request_stack;
}