You are here

public function EntityReferenceRevisionsExportFormatter::prepareView in REST Views 8

Same name and namespace in other branches
  1. 2.0.x modules/rest_views_revisions/src/Plugin/Field/FieldFormatter/EntityReferenceRevisionsExportFormatter.php \Drupal\rest_views_revisions\Plugin\Field\FieldFormatter\EntityReferenceRevisionsExportFormatter::prepareView()

Loads the entities referenced in that field across all the entities being viewed.

Overrides EntityReferenceFormatterBase::prepareView

File

modules/rest_views_revisions/src/Plugin/Field/FieldFormatter/EntityReferenceRevisionsExportFormatter.php, line 120

Class

EntityReferenceRevisionsExportFormatter
Bridge plugin integrating entity_reference_revisions with rest_views.

Namespace

Drupal\rest_views_revisions\Plugin\Field\FieldFormatter

Code

public function prepareView(array $entities_items) {

  // Delegate this method to entity_reference_revisions.
  $this->entityFormatter
    ->prepareView($entities_items);
}