public function BatchBuilder::setLibraries in Drupal 9
Same name and namespace in other branches
- 8 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\BatchCode
public function setLibraries(array $libraries) {
$this->libraries = $libraries;
return $this;
}