CommentLinkBuilder

Defines a class for building markup for comment links on a commented entity.

Comment links include 'log in to post new comment', 'add new comment' etc.

Hierarchy

File

core/modules/comment/src/CommentLinkBuilder.php, line 20

Namespace

Drupal\comment

Members

Name Modifiers Type Description
CommentLinkBuilder::$commentManager protected property Comment manager service.
CommentLinkBuilder::$currentUser protected property Current user.
CommentLinkBuilder::$entityManager protected property The entity manager service.
CommentLinkBuilder::$moduleHandler protected property Module handler service.
CommentLinkBuilder::buildCommentedEntityLinks public function Builds links for the given entity. Overrides CommentLinkBuilderInterface::buildCommentedEntityLinks
CommentLinkBuilder::__construct public function Constructs a new CommentLinkBuilder object.
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
doc_Drupal
2016-10-29 08:50:50
Comments
Leave a Comment

Please login to continue.