You are here

function template_preprocess_insert_link in Insert 8.2

Same name and namespace in other branches
  1. 8 insert.module \template_preprocess_insert_link()
  2. 6 includes/insert.inc \template_preprocess_insert_link()
  3. 7 includes/insert.inc \template_preprocess_insert_link()

Preprocess variables for the insert-link.html.twig file.

File

./insert.module, line 986

Code

function template_preprocess_insert_link(array &$vars) {

  /** @var \Drupal\file\Entity\File $vars['file'] */
  $vars['name'] = $vars['file']
    ->getFilename();
}