@@ -97,34 +97,15 @@ class SaveToFileWebformHandler extends WebformHandlerBase {
9797 'metatag ' ,
9898 ];
9999
100- /**
101- * {@inheritdoc}
102- */
103- public function __construct (array $ configuration , $ plugin_id , $ plugin_definition , LoggerChannelFactoryInterface $ logger_factory , ConfigFactoryInterface $ config_factory , EntityTypeManagerInterface $ entity_type_manager , WebformSubmissionConditionsValidatorInterface $ conditions_validator , ModuleHandlerInterface $ module_handler , WebformTokenManagerInterface $ token_manager , WebformMessageManagerInterface $ message_manager , WebformElementManagerInterface $ element_manager ) {
104- parent ::__construct ($ configuration , $ plugin_id , $ plugin_definition , $ logger_factory , $ config_factory , $ entity_type_manager , $ conditions_validator );
105- $ this ->moduleHandler = $ module_handler ;
106- $ this ->tokenManager = $ token_manager ;
107- $ this ->messageManager = $ message_manager ;
108- $ this ->elementManager = $ element_manager ;
109- }
110-
111100 /**
112101 * {@inheritdoc}
113102 */
114103 public static function create (ContainerInterface $ container , array $ configuration , $ plugin_id , $ plugin_definition ) {
115- $ instance = new static (
116- $ configuration ,
117- $ plugin_id ,
118- $ plugin_definition ,
119- $ container ->get ('logger.factory ' ),
120- $ container ->get ('config.factory ' ),
121- $ container ->get ('entity_type.manager ' ),
122- $ container ->get ('webform_submission.conditions_validator ' ),
123- $ container ->get ('module_handler ' ),
124- $ container ->get ('webform.token_manager ' ),
125- $ container ->get ('webform.message_manager ' ),
126- $ container ->get ('plugin.manager.webform.element ' )
127- );
104+ $ instance = parent ::create ($ container , $ configuration , $ plugin_id , $ plugin_definition );
105+ $ instance ->moduleHandler = $ container ->get ('module_handler ' );
106+ $ instance ->tokenManager = $ container ->get ('webform.token_manager ' );
107+ $ instance ->messageManager = $ container ->get ('webform.message_manager ' );
108+ $ instance ->elementManager = $ container ->get ('plugin.manager.webform.element ' );
128109
129110 $ instance ->request = $ container ->get ('request_stack ' )->getCurrentRequest ();
130111 $ instance ->kernel = $ container ->get ('kernel ' );
0 commit comments