migrate_spip-1.0.0/modules/examples/migrate_spip_examples.module
modules/examples/migrate_spip_examples.module
<?php
/**
* @file
* Provides plugin examples to extend "Migrate SPIP" module.
*/
declare(strict_types=1);
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function migrate_spip_examples_help($route_name, RouteMatchInterface $route_match): string {
$output = '';
if ($route_name === 'help.page.migrate_spip_examples') {
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t(
'Provide plugin examples to extend <a href=":migrate_spip">"Migrate SPIP" module</a>.',
[':migrate_spip' => Url::fromRoute('help.page', ['name' => 'migrate_spip'])->toString()]
) . '</p>';
}
return $output;
}
