public function FlowDeleteForm::form in CMS Content Sync 2.1.x
Gets the actual form array to be built.
Overrides EntityForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Form/ FlowDeleteForm.php, line 76
Class
- FlowDeleteForm
- Builds the form to delete an Flow.
Namespace
Drupal\cms_content_sync\FormCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
$form['keep_status_entities'] = [
'#type' => 'checkbox',
'#title' => t('Keep status entities. <strong>This may cause Exceptions until a Flow with the same machine name is re-created. You should only use this to migrate between different Flow variants with the same purpose.</strong>'),
];
return $form;
}