You are here

public static function WebformSubmissionDevelGenerateTrait::create in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/DevelGenerate/WebformSubmissionDevelGenerateTrait.php \Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerateTrait::create()

File

src/Plugin/DevelGenerate/WebformSubmissionDevelGenerateTrait.php, line 135

Class

WebformSubmissionDevelGenerateTrait
Provides a WebformSubmissionDevelGenerate trait.

Namespace

Drupal\webform\Plugin\DevelGenerate

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('request_stack'), $container
    ->get('database'), $container
    ->get('entity_type.manager'), $container
    ->get('messenger'), $container
    ->get('webform_submission.generate'), $container
    ->get('webform.entity_reference_manager'), $container
    ->get('datetime.time'));
}