Commit 4c398ca9 authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: Update xmlsitemap_engines_help()

parent 73f2dab4
......@@ -100,7 +100,7 @@ function xmlsitemap_hook_info() {
/**
* Implements hook_help().
*/
function xmlsitemap_help($route_name, RouteMatchInterface $request) {
function xmlsitemap_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
......
<?php
use Drupal\Core\Routing\RouteMatchInterface;
use GuzzleHttp\Exception\RequestException;
/**
......@@ -18,10 +19,11 @@ function xmlsitemap_engines_hook_info() {
/**
* Implements hook_help().
*/
function xmlsitemap_engines_help($path, $arg) {
function xmlsitemap_engines_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($path) {
case 'admin/config/search/xmlsitemap/engines':
switch ($route_name) {
case 'xmlsitemap_engines.settings':
if (!\Drupal::moduleHandler()->moduleExists('site_verify')) {
$output .= '<p>' . t('In order to verify site ownership with the search engines listed below, it is highly recommended to download and install the <a href="@site-verify">Site verification module</a>.', array('@site-verify' => 'http://drupal.org/project/site_verify')) . '</p>';
}
......
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