You are here

public function SynonymsFormatWordingProviderInterface::synonymFormatWording in Synonyms 8

Format a synonym into wording as requested by configuration.

Parameters

string $synonym: Synonym that should be formatted.

\Drupal\Core\Entity\ContentEntityInterface $entity: Entity to which this synonym belongs.

\Drupal\synonyms\SynonymInterface $synonym_config: Synonym config entity in the context of which it all happens.

Return value

string Formatted wording

File

src/SynonymsProviderInterface/SynonymsFormatWordingProviderInterface.php, line 26

Class

SynonymsFormatWordingProviderInterface
Interface to format a synonym into some kind of wording.

Namespace

Drupal\synonyms\SynonymsProviderInterface

Code

public function synonymFormatWording($synonym, ContentEntityInterface $entity, SynonymInterface $synonym_config);