public function LikeDislikeVoteBuilderInterface::build in Like & Dislike 8
Lazy builder callback for displaying like and dislike icons.
Parameters
string $entity_type_id: The entity type ID for which like and dislikes icons should be shown.
string|int $entity_id: The entity ID for which like and dislikes icons should be shown.
Return value
array A render array for like and dislike icons.
1 method overrides LikeDislikeVoteBuilderInterface::build()
- LikeDislikeVoteBuilder::build in src/
LikeDislikeVoteBuilder.php - Lazy builder callback for displaying like and dislike icons.
File
- src/
LikeDislikeVoteBuilderInterface.php, line 21
Class
- LikeDislikeVoteBuilderInterface
- Provides a lazy builder interface for user votes.
Namespace
Drupal\like_and_dislikeCode
public function build($entity_type_id, $entity_id);