You are here

public function ContentEntityDisplayController::__construct in Acquia Content Hub 8

Constructs a new ContentEntityDisplayController object.

Parameters

\Drupal\acquia_contenthub\Normalizer\ContentEntityViewModesExtractor $content_entity_view_modes_extractor: The view modes extractor.

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

File

src/Controller/ContentEntityDisplayController.php, line 47

Class

ContentEntityDisplayController
Class ContentEntityDisplayController.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function __construct(ContentEntityViewModesExtractor $content_entity_view_modes_extractor, EntityTypeManagerInterface $entity_type_manager) {
  $this->contentEntityViewModesExtractor = $content_entity_view_modes_extractor;
  $this->entityTypeManager = $entity_type_manager;
}