You are here

public function NodeAuthor::formatters in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/DsField/Node/NodeAuthor.php \Drupal\ds\Plugin\DsField\Node\NodeAuthor::formatters()
  2. 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\Node

Code

public function formatters() {
  $formatters = [
    'author' => $this
      ->t('Author'),
    'author_linked' => $this
      ->t('Author linked to profile'),
  ];
  return $formatters;
}