You are here

WebformSubmissionDevelGenerate.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/Plugin/DevelGenerate/WebformSubmissionDevelGenerate.php

File

src/Plugin/DevelGenerate/WebformSubmissionDevelGenerate.php
View 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

Namesort descending Description
WebformSubmissionDevelGenerate Provides a WebformSubmissionDevelGenerate plugin.