migrate_spip-1.0.0/modules/ui/migrate_spip_ui.module
modules/ui/migrate_spip_ui.module
<?php
/**
* @file
* Provides administrative interface to "Migrate SPIP" module.
*/
declare(strict_types=1);
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function migrate_spip_ui_help($route_name, RouteMatchInterface $route_match): string {
$output = '';
if ($route_name === 'help.page.migrate_spip_ui') {
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t(
'The Migrate SPIP UI module provides an interface for managing plugins for the <a href=":migrate_spip">"Migrate SPIP" module</a>.',
[':migrate_spip' => Url::fromRoute('help.page', ['name' => 'migrate_spip'])->toString()]
) . '</p>';
$output .= '<p>' . t('Provides a form for easily testing SPIP rich text conversion.') . '</p>';
}
return $output;
}
