You are here

public function SynonymsFormatWordingTrait::formatWordingAvailableTokens in Synonyms 8

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/SynonymsProviderInterface/SynonymsFormatWordingTrait.php, line 45

Class

SynonymsFormatWordingTrait
Trait to format wording of a synonym.

Namespace

Drupal\synonyms\SynonymsProviderInterface

Code

public function formatWordingAvailableTokens() {
  return [
    '@synonym' => $this
      ->t('actual synonym value'),
    '@entity_label' => $this
      ->t('actual label of the entity this synonym belongs to'),
  ];
}