22
33namespace Drupal \os2forms_failed_jobs \Plugin \Action ;
44
5- use Drupal \advancedqueue \Entity \QueueInterface ;
6- use Drupal \advancedqueue \Job ;
7- use Drupal \advancedqueue \Plugin \AdvancedQueue \Backend \Database ;
8- use Drupal \advancedqueue \ProcessorInterface ;
95use Drupal \Core \Action \ActionBase ;
106use Drupal \Core \Entity \EntityTypeManagerInterface ;
117use Drupal \Core \Plugin \ContainerFactoryPluginInterface ;
128use Drupal \Core \Session \AccountInterface ;
9+ use Drupal \advancedqueue \Entity \QueueInterface ;
10+ use Drupal \advancedqueue \Job ;
11+ use Drupal \advancedqueue \Plugin \AdvancedQueue \Backend \Database ;
12+ use Drupal \advancedqueue \ProcessorInterface ;
1313use Drupal \os2forms_failed_jobs \Helper \Helper ;
1414use Symfony \Component \DependencyInjection \ContainerInterface ;
1515
@@ -84,7 +84,7 @@ public static function create(ContainerInterface $container, $configuration, $pl
8484 /**
8585 * {@inheritdoc}
8686 */
87- public function execute (string $ jobId = NULL ): void {
87+ public function execute (? string $ jobId = NULL ): void {
8888 $ job = $ this ->helper ->getJobFromId ($ jobId );
8989 if (empty ($ job )) {
9090 return ;
@@ -108,7 +108,7 @@ public function execute(string $jobId = NULL): void {
108108 /**
109109 * {@inheritdoc}
110110 */
111- public function access ($ object , AccountInterface $ account = NULL , $ return_as_object = FALSE ) {
111+ public function access ($ object , ? AccountInterface $ account = NULL , $ return_as_object = FALSE ) {
112112 return TRUE ;
113113 }
114114
0 commit comments