function BatchBuilder::setLibraries
Same name in other branches
- 9 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setLibraries()
- 10 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setLibraries()
- 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 235
Class
- BatchBuilder
- Builds an array for a batch process.
Namespace
Drupal\Core\BatchCode
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.