public function FormatWordingInterface::synonymFormatWording in Synonyms 2.0.x
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.
string $service_id: The caller widget's service id.
Return value
string Formatted wording
File
- src/
ProviderInterface/ FormatWordingInterface.php, line 28
Class
- FormatWordingInterface
- Interface to format a synonym into some kind of wording.
Namespace
Drupal\synonyms\ProviderInterfaceCode
public function synonymFormatWording($synonym, ContentEntityInterface $entity, SynonymInterface $synonym_config, $service_id);