Commit 3490791e authored by Tyler Struyk's avatar Tyler Struyk Committed by Kevin Paxman
Browse files

Code Standards

parent 86e38630
......@@ -31,8 +31,8 @@ require_once dirname(__FILE__) . '/includes/views.inc';
*/
function uw_fdsu_theme_resp_theme_suggestions_form_alter(array &$suggestions, array $variables) {
// form--user-login-form.html.twig.
$suggestions[] = 'form__'. str_replace('-','_', $variables['element']['#id']);
// form--user-login-form.html.twig.
$suggestions[] = 'form__' . str_replace('-', '_', $variables['element']['#id']);
}
/**
......@@ -63,8 +63,7 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) {
_uw_fdsu_theme_resp_add_favicons($variables);
// Add Javascript only on user login page
// Add Javascript only on the user login page.
$route_name = \Drupal::routeMatch()->getRouteName();
if ($route_name == 'user.login') {
$variables['#attached']['library'][] = 'uw_fdsu_theme_resp/user.login';
......
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