/**
* {@inheritdoc}
*/
public function submitForm(array &
$form, FormStateInterface
$form_state) { $entity_type_id =
$form_state->
getValue('entity_type_id'
);
$entity_type_plural =
$this->entityTypeManager->
getDefinition($entity_type_id)->
getPluralLabel();
$batch_builder =
(new BatchBuilder()) ->
setTitle($this->
t('Deleting @entity_type_plural',
['@entity_type_plural' =>
$entity_type_plural])) ->
setProgressMessage(''
) ->
setFinishCallback([__CLASS__, 'moduleBatchFinished'
]) ->
addOperation([__CLASS__, 'deleteContentEntities'
],
[$entity_type_id]);
batch_set($batch_builder->
toArray());
} /**
* Deletes the content entities of the specified entity type.
*
* @param string $entity_type_id
* The entity type ID from which data will be deleted.
* @param array|\ArrayAccess $context
* The batch context array, passed by reference.
*
* @internal
* This batch callback is only meant to be used by this form.
*/