function BatchStorageInterface::getId

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Batch/BatchStorageInterface.php \Drupal\Core\Batch\BatchStorageInterface::getId()

Returns a new batch id.

Return value

int A batch id.

Throws

\Exception Thrown when a new batch id could not be generated.

2 methods override BatchStorageInterface::getId()
BatchStorage::getId in core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php
Returns a new batch id.
BatchStorage::getId in core/lib/Drupal/Core/Batch/BatchStorage.php
Returns a new batch id.

File

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

Class

BatchStorageInterface
Defines a common interface for batch storage operations.

Namespace

Drupal\Core\Batch

Code

public function getId() : int;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.