protected static function GeneralEntityReferenceFormatter::getLinkTopicValues in Formatter Suite 8
Returns an array of link topic annotation.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
2 calls to GeneralEntityReferenceFormatter::getLinkTopicValues()
- GeneralEntityReferenceFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralEntityReferenceFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralEntityReferenceFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralEntityReferenceFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralEntityReferenceFormatter.php, line 435
Class
- GeneralEntityReferenceFormatter
- Formats an entity reference as one or more links.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getLinkTopicValues() {
return [
'any' => t('- Unspecified -'),
'alternate' => t('Alternate form of this entity'),
'author' => t('Author information'),
'bookmark' => t('Bookmarkable permalink'),
'canonical' => t('Canonical (preferred) form of this entity'),
'help' => t('Help information'),
'license' => t('License information'),
];
}