function CommentLinkBuilderInterface::buildCommentedEntityLinks

Same name in other branches
  1. 8.9.x core/modules/comment/src/CommentLinkBuilderInterface.php \Drupal\comment\CommentLinkBuilderInterface::buildCommentedEntityLinks()
  2. 10 core/modules/comment/src/CommentLinkBuilderInterface.php \Drupal\comment\CommentLinkBuilderInterface::buildCommentedEntityLinks()
  3. 11.x core/modules/comment/src/CommentLinkBuilderInterface.php \Drupal\comment\CommentLinkBuilderInterface::buildCommentedEntityLinks()

Builds links for the given entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: Entity for which the links are being built.

array $context: Array of context passed from the entity view builder.

Return value

array Array of entity links.

1 method overrides CommentLinkBuilderInterface::buildCommentedEntityLinks()
CommentLinkBuilder::buildCommentedEntityLinks in core/modules/comment/src/CommentLinkBuilder.php
Builds links for the given entity.

File

core/modules/comment/src/CommentLinkBuilderInterface.php, line 25

Class

CommentLinkBuilderInterface
Defines an interface for building comment links on a commented entity.

Namespace

Drupal\comment

Code

public function buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.