Mercurial > hg > cmmr2012-drupal-site
diff core/modules/ban/ban.module @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/ban/ban.module Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/ban/ban.module Thu May 09 15:34:47 2019 +0100 @@ -5,6 +5,7 @@ * Allows to ban individual IP addresses. */ +use Drupal\Core\Url; use Drupal\Core\Routing\RouteMatchInterface; /** @@ -19,7 +20,7 @@ $output .= '<h3>' . t('Uses') . '</h3>'; $output .= '<dl>'; $output .= '<dt>' . t('Banning IP addresses') . '</dt>'; - $output .= '<dd>' . t('Administrators can enter IP addresses to ban on the <a href=":bans">IP address bans</a> page.', [':bans' => \Drupal::url('ban.admin_page')]) . '</dd>'; + $output .= '<dd>' . t('Administrators can enter IP addresses to ban on the <a href=":bans">IP address bans</a> page.', [':bans' => Url::fromRoute('ban.admin_page')->toString()]) . '</dd>'; $output .= '</dl>'; return $output;