You are here

function template_preprocess_lt_login_link in LoginToboggan 8

Implements hook_preprocess_() for theme function defined at hook_theme above.

File

./logintoboggan.module, line 456
LoginToboggan module.

Code

function template_preprocess_lt_login_link(&$variables) {

  // Only display register text if registration is allowed.
  if (\Drupal::config('user.settings')
    ->get('admin_role')) {
    $variables['login_link_text'] = t('Log in/Register');
  }
  else {
    $variables['login_link_text'] = t('Log in');
  }
}