Commit 5f4a6c16 authored by moshe weitzman's avatar moshe weitzman

#2866990. Add processing for batch generate-content via Drush.

Still not working. Doesnt pass context to the ‘addNode’ operation.
parent cdbea077
...@@ -163,6 +163,7 @@ class DevelGenerateCommands extends DrushCommands { ...@@ -163,6 +163,7 @@ class DevelGenerateCommands extends DrushCommands {
*/ */
public function content($num = 50, $max_comments = 0, $options = ['kill' => FALSE, 'types' => 'page,article', 'feedback' => 1000]) { public function content($num = 50, $max_comments = 0, $options = ['kill' => FALSE, 'types' => 'page,article', 'feedback' => 1000]) {
$this->generate(); $this->generate();
drush_backend_batch_process();
} }
...@@ -186,4 +187,4 @@ class DevelGenerateCommands extends DrushCommands { ...@@ -186,4 +187,4 @@ class DevelGenerateCommands extends DrushCommands {
$instance = $this->getPluginInstance(); $instance = $this->getPluginInstance();
$instance->generate($this->getParameters()); $instance->generate($this->getParameters());
} }
} }
\ No newline at end of file
...@@ -438,7 +438,6 @@ class ContentDevelGenerate extends DevelGenerateBase implements ContainerFactory ...@@ -438,7 +438,6 @@ class ContentDevelGenerate extends DevelGenerateBase implements ContainerFactory
protected function develGenerateContentPreNode(&$results) { protected function develGenerateContentPreNode(&$results) {
// Get user id. // Get user id.
$users = $this->getUsers(); $users = $this->getUsers();
$users = array_merge($users, array('0'));
$results['users'] = $users; $results['users'] = $users;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment