public function FormatWordingTrait::formatWordingAvailableTokens in Synonyms 2.0.x
Get available tokens for format wording.
Return value
array Array of supported tokens in wording. Keys are the tokens whereas corresponding values are explanations about what each token means
File
- src/
ProviderInterface/ FormatWordingTrait.php, line 90
Class
- FormatWordingTrait
- Trait to format wording of a synonym.
Namespace
Drupal\synonyms\ProviderInterfaceCode
public function formatWordingAvailableTokens() {
return [
'@synonym' => $this
->t('The synonym value'),
'@entity_label' => $this
->t('The label of the entity this synonym belongs to'),
'@field_label' => $this
->t('The lowercase label of the provider field'),
'@FIELD_LABEL' => $this
->t('The uppercase label of the provider field'),
];
}