
| Current Path : /var/www/html/vendor/drush/drush/src/Drupal/Commands/core/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/vendor/drush/drush/src/Drupal/Commands/core/BatchCommands.php |
<?php
namespace Drush\Drupal\Commands\core;
use Consolidation\OutputFormatters\StructuredData\UnstructuredListData;
use Drush\Commands\DrushCommands;
class BatchCommands extends DrushCommands
{
/**
* Process operations in the specified batch set.
*
* @command batch:process
* @aliases batch-process
* @param $batch_id The batch id that will be processed.
* @hidden
*/
public function process($batch_id, $options = ['format' => 'json']): UnstructuredListData
{
$return = drush_batch_command($batch_id);
return new UnstructuredListData($return);
}
}