3 namespace Drupal\comment;
5 use Drupal\Core\Entity\FieldableEntityInterface;
8 * Defines an interface for building comment links on a commented entity.
10 * Comment links include 'log in to post new comment', 'add new comment' etc.
12 interface CommentLinkBuilderInterface {
15 * Builds links for the given entity.
17 * @param \Drupal\Core\Entity\FieldableEntityInterface $entity
18 * Entity for which the links are being built.
19 * @param array $context
20 * Array of context passed from the entity view builder.
23 * Array of entity links.
25 public function buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context);