You are here

function template_preprocess_freelinking_error in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 freelinking.theme.inc \template_preprocess_freelinking_error()

Default implementation for template_preprocess_freelink_error().

Parameters

array &$variables: The render element properties containing: -

File

./freelinking.theme.inc, line 31
Freelinking template preprocess functions.

Code

function template_preprocess_freelinking_error(array &$variables) {
  $variables['attributes']['classes'] += [
    'freelink-error',
    'freelink-error--' . $variables['plugin'],
  ];
  $variables['attributes'] = new Attribute($variables['attributes']);
}