t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead.

This commit is contained in:
Michael Stenta 2020-08-18 08:37:15 -04:00
parent e16ebc6a23
commit 84db82b9b9
1 changed files with 2 additions and 2 deletions

View File

@ -38,10 +38,10 @@ class FarmModulesForm extends FormBase {
// Module checkboxes.
$form['modules'] = [
'#title' => t('farmOS Modules'),
'#title' => $this->t('farmOS Modules'),
'#title_display' => 'invisible',
'#type' => 'checkboxes',
'#description' => t('Select the farmOS modules that you would like installed by default.'),
'#description' => $this->t('Select the farmOS modules that you would like installed by default.'),
'#options' => $module_options,
'#default_value' => $module_defaults,
];