public function NodeAuthor::formatters in Display Suite 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/DsField/Node/NodeAuthor.php \Drupal\ds\Plugin\DsField\Node\NodeAuthor::formatters()
- 8.3 src/Plugin/DsField/Node/NodeAuthor.php \Drupal\ds\Plugin\DsField\Node\NodeAuthor::formatters()
Returns a list of possible formatters for this field.
Return value
array A list of possible formatters.
Overrides DsFieldBase::formatters
File
- src/
Plugin/ DsField/ Node/ NodeAuthor.php, line 63
Class
- NodeAuthor
- Plugin that renders the author of a node.
Namespace
Drupal\ds\Plugin\DsField\NodeCode
public function formatters() {
$formatters = [
'author' => $this
->t('Author'),
'author_linked' => $this
->t('Author linked to profile'),
];
return $formatters;
}