Skip to content
Snippets Groups Projects
Commit d4c8d342 authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Replace usage of deprecated function _l().

parent 50ab7948
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
* Contains install and update functions for Honeypot.
*/
use Drupal\Core\Url;
/**
* Implements hook_schema().
*/
......@@ -37,8 +39,9 @@ function honeypot_schema() {
* Implements hook_install().
*/
function honeypot_install() {
$config_url = Url::fromUri('base://admin/config/content/honeypot');
drupal_set_message(t("Honeypot installed successfully. Please !link to protect your forms from spam bots.", [
'!link' => _l(t('configure Honeypot'), 'admin/config/content/honeypot'),
'!link' => \Drupal::l(t('configure Honeypot'), $config_url),
]));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment