Add some help text to /farm/settings/language to explain how it works.

This commit is contained in:
Michael Stenta 2022-01-09 08:07:41 -05:00
parent 9da19d75b3
commit 68ef107c83
1 changed files with 15 additions and 0 deletions

View File

@ -7,8 +7,23 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function farm_l10n_help($route_name, RouteMatchInterface $route_match) {
$output = '';
// Help text for the farm/settings/language form.
if ($route_name == 'farm_l10n.settings') {
$output .= '<p>' . t('Select the default language for the user interface. Individual users can override this by editing their profile.') . '</p>';
}
return $output;
}
/**
* Implements hook_form_FORM_ID_alter().
*/