comment_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata)
Implements hook_tokens().
File
core/modules/comment/comment.tokens.inc, line 123 Builds placeholder replacement tokens for comment-related data.
Code
function comment_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) {
$token_service = \Drupal::token();
$url_options = array('absolute' => TRUE);
if (isset($options['langcode'])) {
$url_opt