function heatbeat_unlike_flag_preprocess_flag in Heartbeat 8
Implements hook_preprocess_HOOK().
File
- modules/
heartbeat_unlike/ heartbeat_unlike.module, line 40
Code
function heatbeat_unlike_flag_preprocess_flag(&$variables) {
// Replace the link title with any tokens.
$token = Drupal::token();
$variables['title'] = $token
->replace($variables['title'], array(
'flag_id' => $variables['flag']
->id(),
'entity_id' => $variables['flaggable']
->id(),
));
}