You are here

public function ExportEntityViewBuilder::view in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ExportEntityViewBuilder.php \Drupal\content_synchronizer\Entity\ExportEntityViewBuilder::view()
  2. 3.x src/Entity/ExportEntityViewBuilder.php \Drupal\content_synchronizer\Entity\ExportEntityViewBuilder::view()

Render the view of the entity.

Overrides EntityViewBuilder::view

File

src/Entity/ExportEntityViewBuilder.php, line 17

Class

ExportEntityViewBuilder
View for Export entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
  $formState = new FormState();
  $formState
    ->addBuildInfo('export', $entity);
  return \Drupal::formBuilder()
    ->buildForm('Drupal\\content_synchronizer\\Form\\LaunchExportForm', $formState);
}