public function BatchBuilder::setLibraries in Drupal 8
Same name and namespace in other branches
- 9 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;
}