You are here

function template_preprocess_securesite_login_form in Secure Site 8

Process variables for securesite-user-login.html.twig

Parameters

$variables: An array of variables from the theme system.

File

theme/securesite.theme.inc, line 17
Theme functions.

Code

function template_preprocess_securesite_login_form(&$variables) {
  $variables['title'] = String::checkPlain(\Drupal::config('securesite.settings')
    ->get('securesite_login_form'));
  $variables['messages'] = _theme('status_messages');
  $variables['openid_identifier'] = drupal_render($variables['form']['openid_identifier']);
  $variables['name'] = $variables['form']['name'];
  $variables['form']['#attached'] = array(
    'css' => array(
      drupal_get_path('module', 'securesite') . '/theme/securesite.css' => array(),
    ),
  );
  $variables['pass'] = $variables['form']['pass'];
  $variables['submit'] = $variables['form']['submit'];
  $variables['openid_links'] = $variables['form']['openid_links'];
}