
| Current Path : /var/www/html/strat/web/modules/contrib/csv_importer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/modules/contrib/csv_importer/csv_importer.module |
<?php
/**
* @file
* Contains csv_importer.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function csv_importer_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.csv_importer':
$output = '';
$output .= '<h3>' . t('CSV Importer') . '</h3>';
$output .= '<p>' . t('Import content from the CSV files.') . '</p>';
$output .= '<h4>' . t('Usage') . '</h4>';
$output .= '<ul>';
$output .= '<li>' . t('Navigate <a href="@uri" target="_blank">here</a>', ['@uri' => Url::fromRoute('csv_importer.import')->toString()]) . '</li>';
$output .= '<li>' . t('Select entity type') . '</li>';
$output .= '<li>' . t('Select entity bundle (if any)') . '</li>';
$output .= '<li>' . t('Make sure that the file is in the UTF-8 format') . '</li>';
$output .= '<li>' . t('Select the CSV file') . '</li>';
$output .= '<li>' . t('Press Import') . '</li>';
$output .= '</ul>';
$output .= '<h4>' . t('Documentation') . '</h4>';
$output .= '<a href="https://www.drupal.org/docs/8/modules/csv-importer" target="_blank">https://www.drupal.org/docs/8/modules/csv-importer</a>';
return $output;
}
}