You are here

public function CommentBreadcrumbBuilder::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/src/CommentBreadcrumbBuilder.php \Drupal\comment\CommentBreadcrumbBuilder::__construct()
  2. 10 core/modules/comment/src/CommentBreadcrumbBuilder.php \Drupal\comment\CommentBreadcrumbBuilder::__construct()

Constructs the CommentBreadcrumbBuilder.

Parameters

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

File

core/modules/comment/src/CommentBreadcrumbBuilder.php, line 31

Class

CommentBreadcrumbBuilder
Class to define the comment breadcrumb builder.

Namespace

Drupal\comment

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('comment');
}