abstract protected function FieldFormatterBase::getViewDisplay in (Entity Reference) Field Formatters 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/FieldFormatterBase.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterBase::getViewDisplay()
- 3.x src/Plugin/Field/FieldFormatter/FieldFormatterBase.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterBase::getViewDisplay()
Gets entity view display for a bundle.
Parameters
string $bundle_id: The bundle ID.
Return value
\Drupal\Core\Entity\Display\EntityViewDisplayInterface Entity view display.
1 call to FieldFormatterBase::getViewDisplay()
- FieldFormatterBase::viewElements in src/
Plugin/ Field/ FieldFormatter/ FieldFormatterBase.php - Builds a renderable array for a field value.
2 methods override FieldFormatterBase::getViewDisplay()
- FieldFormatterFromViewDisplay::getViewDisplay in src/
Plugin/ Field/ FieldFormatter/ FieldFormatterFromViewDisplay.php - Gets entity view display for a bundle.
- FieldFormatterWithInlineSettings::getViewDisplay in src/
Plugin/ Field/ FieldFormatter/ FieldFormatterWithInlineSettings.php - Gets entity view display for a bundle.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldFormatterBase.php, line 39
Class
- FieldFormatterBase
- Base class for field formatters.
Namespace
Drupal\field_formatter\Plugin\Field\FieldFormatterCode
protected abstract function getViewDisplay($bundle_id);