Commit de6e252d authored by grisendo's avatar grisendo
Browse files

Changed token_replace with Drupal::token()->replace()

parent 7b4ae861
......@@ -63,7 +63,8 @@ function theme_colorbox_image_formatter($variables) {
$caption = $entity_title;
break;
case 'custom':
$caption = token_replace($settings['colorbox_caption_custom'], array($entity_type => $entity, 'file' => (object) $item), array('clear' => TRUE));
$token_service = \Drupal::token();
$caption = $token_service->replace($settings['colorbox_caption_custom'], array($entity_type => $entity, 'file' => (object) $item), array('clear' => TRUE));
break;
default:
$caption = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment