protected function StringTranslationTrait::t in Simple hierarchical select 2.0.x
18 calls to StringTranslationTrait::t()
- EntityReferenceShsFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ EntityReferenceShsFormatter.php - Returns a form to configure settings for the formatter.
- EntityReferenceShsFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ EntityReferenceShsFormatter.php - Returns a short summary for the current formatter settings.
- OptionsShsChosenWidget::settingsForm in modules/
shs_chosen/ src/ Plugin/ Field/ FieldWidget/ OptionsShsChosenWidget.php - Returns a form to configure settings for the widget.
- OptionsShsChosenWidget::settingsSummary in modules/
shs_chosen/ src/ Plugin/ Field/ FieldWidget/ OptionsShsChosenWidget.php - Returns a short summary for the current widget settings.
- OptionsShsWidget::formElement in src/
Plugin/ Field/ FieldWidget/ OptionsShsWidget.php - Returns the form for a single field widget.
File
- src/
StringTranslationTrait.php, line 35
Class
- StringTranslationTrait
- Custom enhancements for the StringTranslationTrait.
Namespace
Drupal\shsCode
protected function t($string, array $args = [], array $options = []) {
if (empty($options['context'])) {
$options['context'] = $this->translationContext;
}
return $this
->tCore($string, $args, $options);
}