public function ViewsIcalHelper::replaceTokens in Views iCal 8
Our own token replacement
Parameters
$value:
null $row_index:
Return value
string
File
- src/
ViewsIcalHelper.php, line 317
Class
- ViewsIcalHelper
- Helper methods for views_ical.
Namespace
Drupal\views_icalCode
public function replaceTokens($value, $entity = NULL) {
$token_service = \Drupal::token();
// Replace the token for subject.
$email_auth = $token_service
->replace($value, array(
'node' => $entity,
));
return $value;
}