function CommentBreadcrumbBuilder::__construct
Same name in other branches
- 9 core/modules/comment/src/CommentBreadcrumbBuilder.php \Drupal\comment\CommentBreadcrumbBuilder::__construct()
- 10 core/modules/comment/src/CommentBreadcrumbBuilder.php \Drupal\comment\CommentBreadcrumbBuilder::__construct()
- 11.x 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\commentCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->storage = $entity_type_manager->getStorage('comment');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.