You are here

public function EntityExportFormBuilder::addExportFields in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Service/EntityExportFormBuilder.php \Drupal\content_synchronizer\Service\EntityExportFormBuilder::addExportFields()
  2. 3.x src/Service/EntityExportFormBuilder.php \Drupal\content_synchronizer\Service\EntityExportFormBuilder::addExportFields()

Add the export submform in the entity edition form, if the entity is exportable.

File

src/Service/EntityExportFormBuilder.php, line 32

Class

EntityExportFormBuilder
The entity export form builder.

Namespace

Drupal\content_synchronizer\Service

Code

public function addExportFields(array &$form, FormStateInterface $formState) {
  if ($this
    ->isEntityEditForm($form, $formState)) {
    $this
      ->addExportFieldsToEntityForm($form, $formState);
  }
}