public function EntityReferenceRevisionsExportFormatter::prepareView in REST Views 2.0.x
Same name and namespace in other branches
- 8 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\FieldFormatterCode
public function prepareView(array $entities_items) : void {
// Delegate this method to entity_reference_revisions.
$this->entityFormatter
->prepareView($entities_items);
}