BatchStorage::delete

public BatchStorage::delete($id) Deletes a batch. Parameters int $id: The ID of the batch to delete. Overrides BatchStorageInterface::delete File core/lib/Drupal/Core/Batch/BatchStorage.php, line 79 Class BatchStorage Namespace Drupal\Core\Batch Code public function delete($id) { try { $this->connection->delete('batch') ->condition('bid', $id) ->execute(); } catch (\Exception $e) { $this->catchException($e); } }

BatchStorage::create

public BatchStorage::create(array $batch) Creates and saves a batch. Parameters array $batch: The array representing the batch to create. Overrides BatchStorageInterface::create File core/lib/Drupal/Core/Batch/BatchStorage.php, line 123 Class BatchStorage Namespace Drupal\Core\Batch Code public function create(array $batch) { // Ensure that a session is started before using the CSRF token generator. $this->session->start(); $try_again = FALSE; try { // The batch tab

BatchStorage::cleanup

public BatchStorage::cleanup() Cleans up failed or old batches. Overrides BatchStorageInterface::cleanup File core/lib/Drupal/Core/Batch/BatchStorage.php, line 108 Class BatchStorage Namespace Drupal\Core\Batch Code public function cleanup() { try { // Cleanup the batch table and the queue for failed batches. $this->connection->delete('batch') ->condition('timestamp', REQUEST_TIME - 864000, '<') ->execute(); } catch (\Exception $e) { $this-

BatchStorage::catchException

protected BatchStorage::catchException(\Exception $e) Act on an exception when batch might be stale. If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the batch is stale and the exception needs to propagate. Parameters $e: The exception. Throws \Exception File core/lib/Drupal/Core/Batch/BatchStorage.php, line 195 Class BatchStorage Namespace Drupal\Core\Batch Code protected function catchException(\Exception $e) { if ($this->co

BatchStorage::$session

The session. Type: \Symfony\Component\HttpFoundation\Session\SessionInterface File core/lib/Drupal/Core/Batch/BatchStorage.php, line 29 Class BatchStorage Namespace Drupal\Core\Batch Code protected $session;

BatchStorage::$csrfToken

The CSRF token generator. Type: \Drupal\Core\Access\CsrfTokenGenerator File core/lib/Drupal/Core/Batch/BatchStorage.php, line 36 Class BatchStorage Namespace Drupal\Core\Batch Code protected $csrfToken;

BatchStorage::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Batch/BatchStorage.php, line 22 Class BatchStorage Namespace Drupal\Core\Batch Code protected $connection;

BatchStorage

Hierarchy class \Drupal\Core\Batch\BatchStorage implements BatchStorageInterface File core/lib/Drupal/Core/Batch/BatchStorage.php, line 10 Namespace Drupal\Core\Batch Members Name Modifiers Type Description BatchStorage::$connection protected property The database connection. BatchStorage::$csrfToken protected property The CSRF token generator. BatchStorage::$session protected property The session. BatchStorage::catchException protected function A

BatchNegotiator::__construct

public BatchNegotiator::__construct(BatchStorageInterface $batch_storage, RequestStack $request_stack) Constructs a BatchNegotiator. Parameters \Drupal\Core\Batch\BatchStorageInterface $batch_storage: The batch storage. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. File core/modules/system/src/Theme/BatchNegotiator.php, line 37 Class BatchNegotiator Sets the active theme for the batch page. Namespace Drupal\system

BatchNegotiator::determineActiveTheme

public BatchNegotiator::determineActiveTheme(RouteMatchInterface $route_match) Determine the active theme for the request. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead. Overrides ThemeNegotiatorInterface::determineActiveTheme File core/modules/system/src/Theme/BatchNegotiator.php, line 52 Class BatchNegot