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::$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::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::$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::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::$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::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

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::applies

public BatchNegotiator::applies(RouteMatchInterface $route_match) Whether this theme negotiator should be used to set the theme. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value bool TRUE if this negotiator should be used or FALSE to let other negotiators decide. Overrides ThemeNegotiatorInterface::applies File core/modules/system/src/Theme/BatchNegotiator.php, line 45 Class BatchNegotiator Sets the active theme for the batch

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