function EntityField::getFormatterOptions

Same name and namespace in other branches
  1. 4.0.x modules/ctools_block/src/Plugin/Block/EntityField.php \Drupal\ctools_block\Plugin\Block\EntityField::getFormatterOptions()

Gets the formatter options for this field type.

Return value

array The formatter options.

1 call to EntityField::getFormatterOptions()
EntityField::blockForm in modules/ctools_block/src/Plugin/Block/EntityField.php

File

modules/ctools_block/src/Plugin/Block/EntityField.php, line 349

Class

EntityField
Provides a block to a field on an entity.

Namespace

Drupal\ctools_block\Plugin\Block

Code

protected function getFormatterOptions() {
    return $this->formatterManager
        ->getOptions($this->getFieldStorageDefinition()
        ->getType());
}