You are here

public function RealisticDummyContentGenerator::__construct in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentGenerator.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentGenerator::__construct()
  2. 3.x api/src/includes/RealisticDummyContentGenerator.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentGenerator::__construct()

Constructor.

Parameters

array $more: Can contain: kill => TRUE|FALSE.

File

api/src/includes/RealisticDummyContentGenerator.php, line 24

Class

RealisticDummyContentGenerator
Abstract dummy content generator class.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function __construct($type, $bundle, $num, $more) {
  $this->type = $type;
  $this->bundle = $bundle;
  $this->num = $num;
  if (isset($more['kill']) && $more['kill']) {
    $this->kill = TRUE;
  }
  else {
    $this->kill = FALSE;
  }
}