public function RealisticDummyContentGenerator::__construct in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentGenerator.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentGenerator::__construct()
- 7.2 api/src/includes/RealisticDummyContentGenerator.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentGenerator::__construct()
Constructor.
Parameters
string $type: An entity type such as "user" or "node".
mixed $bundle: An entity bundle.
mixed $num: Number of entities to generate.
array $more: Can contain: kill => TRUE|FALSE.
File
- api/
src/ includes/ RealisticDummyContentGenerator.php, line 61
Class
- RealisticDummyContentGenerator
- Abstract dummy content generator class.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function __construct(string $type, $bundle, $num, array $more) {
$this->type = $type;
$this->bundle = $bundle;
$this->num = $num;
if (isset($more['kill']) && $more['kill']) {
$this->kill = TRUE;
}
else {
$this->kill = FALSE;
}
}