More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / modules / comment / src / CommentLinkBuilderInterface.php
1 <?php
2
3 namespace Drupal\comment;
4
5 use Drupal\Core\Entity\FieldableEntityInterface;
6
7 /**
8  * Defines an interface for building comment links on a commented entity.
9  *
10  * Comment links include 'log in to post new comment', 'add new comment' etc.
11  */
12 interface CommentLinkBuilderInterface {
13
14   /**
15    * Builds links for the given entity.
16    *
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.
21    *
22    * @return array
23    *   Array of entity links.
24    */
25   public function buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context);
26
27 }