function ReportWorkerBase::create
Same name in other branches
- 3.x modules/cron_example/src/Plugin/QueueWorker/ReportWorkerBase.php \Drupal\cron_example\Plugin\QueueWorker\ReportWorkerBase::create()
Overrides ContainerFactoryPluginInterface::create
File
-
modules/
cron_example/ src/ Plugin/ QueueWorker/ ReportWorkerBase.php, line 58
Class
- ReportWorkerBase
- Provides base functionality for the ReportWorkers.
Namespace
Drupal\cron_example\Plugin\QueueWorkerCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$form = new static($configuration, $plugin_id, $plugin_definition, $container->get('state'), $container->get('logger.factory'));
$form->setMessenger($container->get('messenger'));
return $form;
}