You are here

class WebformSubmissionDevelGenerate in Webform 8.5

Same name and namespace in other branches
  1. 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

Expanded class hierarchy of WebformSubmissionDevelGenerate

File

src/Plugin/DevelGenerate/WebformSubmissionDevelGenerate.php, line 25

Namespace

Drupal\webform\Plugin\DevelGenerate
View source
class WebformSubmissionDevelGenerate extends DevelGenerateBase implements ContainerFactoryPluginInterface {
  use WebformSubmissionDevelGenerateTrait;

  /**
   * {@inheritdoc}
   */
  public function validateDrushParams(array $args, array $options = []) {
    return $this
      ->_validateDrushParams($args, $options);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
WebformSubmissionDevelGenerate::validateDrushParams public function
WebformSubmissionDevelGenerateTrait::$database protected property The database object.
WebformSubmissionDevelGenerateTrait::$entityTypeManager protected property The entity type manager.
WebformSubmissionDevelGenerateTrait::$generatingSubmissions protected static property Track in webform submission are being generated.
WebformSubmissionDevelGenerateTrait::$messenger protected property The messenger.
WebformSubmissionDevelGenerateTrait::$request protected property The current request.
WebformSubmissionDevelGenerateTrait::$time protected property The time service.
WebformSubmissionDevelGenerateTrait::$webformEntityReferenceManager protected property The webform entity reference manager.
WebformSubmissionDevelGenerateTrait::$webformStorage protected property The webform storage.
WebformSubmissionDevelGenerateTrait::$webformSubmissionGenerate protected property The webform submission generation service.
WebformSubmissionDevelGenerateTrait::$webformSubmissionStorage protected property The webform submission storage.
WebformSubmissionDevelGenerateTrait::create public static function
WebformSubmissionDevelGenerateTrait::deleteWebformSubmissions protected function Deletes all submissions of given webforms.
WebformSubmissionDevelGenerateTrait::generateElements public function
WebformSubmissionDevelGenerateTrait::generateSubmission protected function Create one node. Used by both batch and non-batch code branches.
WebformSubmissionDevelGenerateTrait::generateSubmissions protected function Generates submissions for a list of given webforms.
WebformSubmissionDevelGenerateTrait::getUsers protected function Retrieve 50 uids from the database.
WebformSubmissionDevelGenerateTrait::initializeGenerate protected function Add 'users' that contains a list of uids.
WebformSubmissionDevelGenerateTrait::isGeneratingSubmissions public static function Track if webform submissions are being generated.
WebformSubmissionDevelGenerateTrait::settingsForm public function
WebformSubmissionDevelGenerateTrait::validateEntity protected function Validate webform source entity type and id.
WebformSubmissionDevelGenerateTrait::validateForm public function Custom validation handler.
WebformSubmissionDevelGenerateTrait::_validateDrushParams public function
WebformSubmissionDevelGenerateTrait::__construct public function Constructs a WebformSubmissionDevelGenerate object.