Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
32
core/modules/comment/src/CommentLinkBuilderInterface.php
Normal file
32
core/modules/comment/src/CommentLinkBuilderInterface.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\comment\CommentLinkBuilderInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\comment;
|
||||
|
||||
use Drupal\Core\Entity\FieldableEntityInterface;
|
||||
|
||||
/**
|
||||
* Defines an interface for building comment links on a commented entity.
|
||||
*
|
||||
* Comment links include 'login to post new comment', 'add new comment' etc.
|
||||
*/
|
||||
interface CommentLinkBuilderInterface {
|
||||
|
||||
/**
|
||||
* Builds links for the given entity.
|
||||
*
|
||||
* @param \Drupal\Core\Entity\FieldableEntityInterface $entity
|
||||
* Entity for which the links are being built.
|
||||
* @param array $context
|
||||
* Array of context passed from the entity view builder.
|
||||
*
|
||||
* @return array
|
||||
* Array of entity links.
|
||||
*/
|
||||
public function buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context);
|
||||
|
||||
}
|
Reference in a new issue