You are here

interface LikeDislikeVoteBuilderInterface in Like & Dislike 8

Provides a lazy builder interface for user votes.

Hierarchy

Expanded class hierarchy of LikeDislikeVoteBuilderInterface

All classes that implement LikeDislikeVoteBuilderInterface

1 file declares its use of LikeDislikeVoteBuilderInterface
LikeAndDislike.php in src/Plugin/views/field/LikeAndDislike.php

File

src/LikeDislikeVoteBuilderInterface.php, line 8

Namespace

Drupal\like_and_dislike
View source
interface LikeDislikeVoteBuilderInterface {

  /**
   * Lazy builder callback for displaying like and dislike icons.
   *
   * @param string $entity_type_id
   *   The entity type ID for which like and dislikes icons should be shown.
   * @param string|int $entity_id
   *   The entity ID for which like and dislikes icons should be shown.
   *
   * @return array
   *   A render array for like and dislike icons.
   */
  public function build($entity_type_id, $entity_id);

}

Members

Namesort descending Modifiers Type Description Overrides
LikeDislikeVoteBuilderInterface::build public function Lazy builder callback for displaying like and dislike icons. 1