public function FormatterBase::getConfigurableViewModes in Reference Table Formatter 8
Get the view modes which can be selected for this field formatter.
Overrides FormatterInterface::getConfigurableViewModes
1 call to FormatterBase::getConfigurableViewModes()
- FormatterBase::settingsForm in src/
FormatterBase.php - Returns a form to configure settings for the formatter.
File
- src/
FormatterBase.php, line 136
Class
- FormatterBase
- A base field formatter class for rendering tables.
Namespace
Drupal\reference_table_formatterCode
public function getConfigurableViewModes() {
return $this->displayRepository
->getViewModeOptions($this
->getTargetEntityId($this->fieldDefinition));
}