protected function GeneralLinkFormatter::getDescription in Formatter Suite 8
Returns a brief description of the formatter.
Return value
string Returns a brief translated description of the formatter.
1 call to GeneralLinkFormatter::getDescription()
- GeneralLinkFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralLinkFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralLinkFormatter.php, line 239
Class
- GeneralLinkFormatter
- Formats a link field as one or more links.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected function getDescription() {
$isMultiple = $this->fieldDefinition
->getFieldStorageDefinition()
->isMultiple();
if ($isMultiple === TRUE) {
return $this
->t("Format field values as links that show the title or URL. Multiple field values are shown as a list on one line, bulleted, numbered, or in blocks.");
}
return $this
->t("Format a field value as a link that shows a title or URL.");
}