You are here

public function ImportEntityViewBuilder::view in Content Synchronizer 8

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

Render the view of the entity.

Overrides EntityViewBuilder::view

File

src/Entity/ImportEntityViewBuilder.php, line 17

Class

ImportEntityViewBuilder
View for Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

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