public function OrphanedCompositeEntitiesDeleteForm::submitForm in Entity Reference Revisions 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ OrphanedCompositeEntitiesDeleteForm.php, line 106
Class
- OrphanedCompositeEntitiesDeleteForm
- Class OrphanedCompositeEntitiesDeleteForm.
Namespace
Drupal\entity_reference_revisions\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->purger
->setBatch(array_filter($form_state
->getValue('composite_entity_types')));
}