Search Results
… here is a simple custom entity that stores information from the parsed URL. $client = \Drupal::service('http_client'); $sitemapSource = new … items in compressed sitemap. foreach ($sitemapList as $key => $sitemapUrl) { $args = [ $key, $sitemapUrl->getRawUrl(), ]; …
… page and by default will include the core/drupal.batch library. setUrlOptions() - Sets options that will be added to the redirect URLs. setProgressive() - This setting changes the batch to run … the form submission back to the form itself. $form_state->setRedirectUrl(new Url($this->getFormId())); } As this is a form operation we can …
… $args); } batch_set($batch->toArray()); $form_state->setRedirectUrl(new Url($this->getFormId())); } When we submit the form the batch …
… use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; use Drupal\file\Entity\File; class BatchForm extends FormBase { … batch_set($batch->toArray()); $form_state->setRedirectUrl(new Url($this->getFormId())); } Note that we can't pass the $tempFile …