You are here

function template_preprocess_insert_link in Insert 8

Same name and namespace in other branches
  1. 8.2 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 243

Code

function template_preprocess_insert_link(&$vars) {

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