WebformSubmissionDevelGenerate.php in Webform 6.x
Same filename and directory in other branches
Namespace
Drupal\webform\Plugin\DevelGenerateFile
src/Plugin/DevelGenerate/WebformSubmissionDevelGenerate.phpView source
<?php
namespace Drupal\webform\Plugin\DevelGenerate;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\devel_generate\DevelGenerateBase;
/**
* Provides a WebformSubmissionDevelGenerate plugin.
*
* @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,
* }
* )
*/
class WebformSubmissionDevelGenerate extends DevelGenerateBase implements ContainerFactoryPluginInterface {
use WebformSubmissionDevelGenerateTrait;
/**
* {@inheritdoc}
*/
public function validateDrushParams(array $args, array $options = []) {
return $this
->_validateDrushParams($args, $options);
}
}
Classes
Name | Description |
---|---|
WebformSubmissionDevelGenerate | Provides a WebformSubmissionDevelGenerate plugin. |