class WebformSubmissionDevelGenerate in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/DevelGenerate/WebformSubmissionDevelGenerate.php \Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate
Provides a WebformSubmissionDevelGenerate plugin.
Plugin annotation
@DevelGenerate(
id = "webform_submission",
label = @Translation("Webform submissions"),
description = @Translation("Generate a given number of webform submissions. Optionally delete current submissions."),
url = "webform",
permission = "administer webform",
settings = {
"num" = 50,
"kill" = FALSE,
"entity-type" = NULL,
"entity-id" = NULL,
}
)
Hierarchy
- class \Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate extends \Drupal\devel_generate\DevelGenerateBase implements ContainerFactoryPluginInterface uses WebformSubmissionDevelGenerateTrait
Expanded class hierarchy of WebformSubmissionDevelGenerate
File
- src/
Plugin/ DevelGenerate/ WebformSubmissionDevelGenerate.php, line 25
Namespace
Drupal\webform\Plugin\DevelGenerateView source
class WebformSubmissionDevelGenerate extends DevelGenerateBase implements ContainerFactoryPluginInterface {
use WebformSubmissionDevelGenerateTrait;
/**
* {@inheritdoc}
*/
public function validateDrushParams(array $args, array $options = []) {
return $this
->_validateDrushParams($args, $options);
}
}