public function NodeAuthor::formatters in Display Suite 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/DsField/Node/NodeAuthor.php \Drupal\ds\Plugin\DsField\Node\NodeAuthor::formatters()
- 8.2 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 61
Class
- NodeAuthor
- Plugin that renders the author of a node.
Namespace
Drupal\ds\Plugin\DsField\NodeCode
public function formatters() {
return [
'author' => $this
->t('Author'),
'author_linked' => $this
->t('Author linked to profile'),
];
}