You are here

public function BatchStorageInterface::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Batch/BatchStorageInterface.php \Drupal\Core\Batch\BatchStorageInterface::create()
  2. 9 core/lib/Drupal/Core/Batch/BatchStorageInterface.php \Drupal\Core\Batch\BatchStorageInterface::create()

Creates and saves a batch.

Parameters

array $batch: The array representing the batch to create.

1 method overrides BatchStorageInterface::create()
BatchStorage::create in core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php
Creates and saves a batch.

File

core/lib/Drupal/Core/Batch/BatchStorageInterface.php, line 27

Class

BatchStorageInterface
Defines a common interface for batch storage operations.

Namespace

Drupal\Core\Batch

Code

public function create(array $batch);