interface CommentLinkBuilderInterface (View source)

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

Comment links include 'log in to post new comment', 'add new comment' etc.

Methods

array
buildCommentedEntityLinks(FieldableEntityInterface $entity, array $context)

Builds links for the given entity.

Details

Builds links for the given entity.

Parameters

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.