function BatchBuilder::isSetIdRegistered

Checks if a set ID has been registered during this request.

Parameters

string $setId: The set ID to check.

Return value

bool True if this set ID has been registered.

2 calls to BatchBuilder::isSetIdRegistered()
BatchBuilderTest::testRegisterIds in core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php
Tests registering IDs of built batches.
node_access_rebuild in core/modules/node/node.module
Rebuilds the node access database.

File

core/lib/Drupal/Core/Batch/BatchBuilder.php, line 353

Class

BatchBuilder
Builds an array for a batch process.

Namespace

Drupal\Core\Batch

Code

public static function isSetIdRegistered(string $setId) : bool {
  return isset(static::$registeredSetIds[$setId]);
}

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