You are here

public function ViewModeFieldFormatter::getFieldFormatterId in Entity Embed 8

Returns the field formatter id.

Return value

string|null Returns field formatter id or null.

Overrides FieldFormatterEntityEmbedDisplayBase::getFieldFormatterId

1 call to ViewModeFieldFormatter::getFieldFormatterId()
ViewModeFieldFormatter::getFieldFormatter in src/Plugin/entity_embed/EntityEmbedDisplay/ViewModeFieldFormatter.php
Constructs a field formatter.

File

src/Plugin/entity_embed/EntityEmbedDisplay/ViewModeFieldFormatter.php, line 58

Class

ViewModeFieldFormatter
Entity Embed Display reusing entity reference field formatters.

Namespace

Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay

Code

public function getFieldFormatterId() {
  return 'entity_reference_entity_view';
}