You are here

public function LibraryItemController::__construct in Paragraphs 8

LibraryItemController constructor.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

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

\Drupal\Core\Render\Renderer $renderer: The renderer service.

File

modules/paragraphs_library/src/Controller/LibraryItemController.php, line 48

Class

LibraryItemController

Namespace

Drupal\paragraphs_library\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_type_manager, Renderer $renderer) {
  $this->dateFormatter = $date_formatter;
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}