You are here

function votingapi_reaction_theme in Voting API Reaction 8

Implements hook_theme().

File

./votingapi_reaction.module, line 18
Allows users to react to any entity using Voting and Field APIs.

Code

function votingapi_reaction_theme($existing, $type, $theme, $path) {
  return [
    'votingapi_reaction_item' => [
      'variables' => [
        'reaction' => NULL,
        'icon' => NULL,
        'label' => NULL,
        'count' => NULL,
      ],
      'template' => 'votingapi-reaction-item',
    ],
  ];
}