Commit f41ad676 authored by salvis's avatar salvis

Issue #2714659 by bapi_22, Neslee Canil Pinto, salvis: Fix text on title when generate content

parent 55c2796a
......@@ -390,6 +390,9 @@ class ContentDevelGenerate extends DevelGenerateBase implements ContainerFactory
$this->develGenerateContentPreNode($context['results']);
}
/**
* Add node to existings batch operation.
*/
public function batchContentAddNode($vars, &$context) {
if ($this->drushBatch) {
$this->develGenerateContentAddNode($vars);
......@@ -480,7 +483,7 @@ class ContentDevelGenerate extends DevelGenerateBase implements ContainerFactory
}
/**
* Return the same array passed as parameter
* Return the same array passed as parameter,
* but with an array of uids for the key 'users'.
*/
protected function develGenerateContentPreNode(&$results) {
......@@ -504,7 +507,7 @@ class ContentDevelGenerate extends DevelGenerateBase implements ContainerFactory
$node = $this->nodeStorage->create(array(
'nid' => NULL,
'type' => $node_type,
'title' => $this->getRandom()->sentences(mt_rand(1, $results['title_length']), TRUE),
'title' => $node_type . '_' . $this->getRandom()->sentences(mt_rand(1, $results['title_length']), TRUE),
'uid' => $uid,
'revision' => mt_rand(0, 1),
'status' => TRUE,
......
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