diff --git a/bsn_field.module b/bsn_field.module index 975a0ca..c844b8a 100644 --- a/bsn_field.module +++ b/bsn_field.module @@ -6,6 +6,7 @@ */ use Drupal\Core\Routing\RouteMatchInterface; +use Drupal\Core\Url; /** * Implements hook_help(). @@ -16,8 +17,8 @@ function bsn_field_help($route_name, RouteMatchInterface $route_match) { $output = ''; $output .= '

' . t('About') . '

'; $output .= '

' . t('The BSN field module allows you to create fields that contain BSN numbers. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them.', [ - ':field' => \Drupal::url('help.page', ['name' => 'field']), - ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? \Drupal::url('help.page', ['name' => 'field_ui']) : '#', + ':field' => Url::fromRoute('help.page', ['name' => 'field']), + ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page', ['name' => 'field_ui']) : '#', ]) . '

'; return $output; }