public function ImportEntityViewBuilder::view in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntityViewBuilder.php \Drupal\content_synchronizer\Entity\ImportEntityViewBuilder::view()
- 8 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 67
Class
- ImportEntityViewBuilder
- View for Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
$formState = new FormState();
$formState
->addBuildInfo('import', $entity);
return $this->formBuilder
->buildForm(LaunchImportForm::class, $formState);
}