You are here

function SimpleGenerator::_Generate_ in Realistic Dummy Content 8

Throws

\Exception

File

api/src/generators/SimpleGenerator.php, line 18
Define autoload class.

Class

SimpleGenerator

Namespace

Drupal\realistic_dummy_content_api\generators

Code

function _Generate_() {
  for ($i = 0; $i < $this
    ->GetNum(); $i++) {
    $info = array(
      'devel_generate' => TRUE,
    );
    $entity = entity_create($this
      ->GetType(), $info);
    $entity
      ->save();
  }
}