public function CommentLinkBuilder::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/CommentLinkBuilder.php \Drupal\comment\CommentLinkBuilder::__construct()
Constructs a new CommentLinkBuilder object.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user.
\Drupal\comment\CommentManagerInterface $comment_manager: Comment manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: String translation service.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
File
- core/
modules/ comment/ src/ CommentLinkBuilder.php, line 71 - Contains \Drupal\comment\CommentLinkBuilder.
Class
- CommentLinkBuilder
- Defines a class for building markup for comment links on a commented entity.
Namespace
Drupal\commentCode
public function __construct(AccountInterface $current_user, CommentManagerInterface $comment_manager, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, EntityManagerInterface $entity_manager) {
$this->currentUser = $current_user;
$this->commentManager = $comment_manager;
$this->moduleHandler = $module_handler;
$this->stringTranslation = $string_translation;
$this->entityManager = $entity_manager;
}