public CommentBreadcrumbBuilder::__construct(EntityManagerInterface $entity_manager)
Constructs the CommentBreadcrumbBuilder.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity 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(EntityManagerInterface $entity_manager) { $this->storage = $entity_manager->getStorage('comment'); }
Please login to continue.