You are here

public function MediaImage::getFieldFormatterId in Lightning Media 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\lightning_media\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldFormatterId()
  2. 8.2 src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\lightning_media\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldFormatterId()
  3. 8.3 src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\lightning_media\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldFormatterId()

Returns the field formatter id.

Return value

string|null Returns field formatter id or null.

Overrides FieldFormatterEntityEmbedDisplayBase::getFieldFormatterId

File

src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php, line 31

Class

MediaImage
Renders a media item's image via the image formatter.

Namespace

Drupal\lightning_media\Plugin\entity_embed\EntityEmbedDisplay

Code

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