function BatchBuilder::setLibraries

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setLibraries()
  2. 10 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setLibraries()
  3. 11.x core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setLibraries()

Sets the libraries to use when processing the batch.

Adds the libraries for use on the progress page. Any previously added libraries are removed.

Parameters

string[] $libraries: The libraries to be used.

Return value

$this

File

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

Class

BatchBuilder
Builds an array for a batch process.

Namespace

Drupal\Core\Batch

Code

public function setLibraries(array $libraries) {
    $this->libraries = $libraries;
    return $this;
}

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