comparison core/modules/comment/src/CommentLinkBuilderInterface.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
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 }