class StubFormSubmitter
Provides a stub FormSubmitter that doesn't depend on batch_get().
Hierarchy
- class \Drupal\Core\Form\FormSubmitter implements \Drupal\Core\Form\FormSubmitterInterface
- class \Drupal\Tests\Core\Form\StubFormSubmitter extends \Drupal\Core\Form\FormSubmitter
Expanded class hierarchy of StubFormSubmitter
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ StubFormSubmitter.php, line 12
Namespace
Drupal\Tests\Core\FormView source
class StubFormSubmitter extends FormSubmitter {
protected function &batchGet() : array {
$batch = [];
return $batch;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| FormSubmitter::doSubmitForm | public | function | Handles the submitted form, executing callbacks and processing responses. | Overrides FormSubmitterInterface::doSubmitForm |
| FormSubmitter::executeSubmitHandlers | public | function | Executes custom submission handlers for a given form. | Overrides FormSubmitterInterface::executeSubmitHandlers |
| FormSubmitter::redirectForm | public | function | Redirects the user to a URL after a form has been processed. | Overrides FormSubmitterInterface::redirectForm |
| FormSubmitter::__construct | public | function | ||
| StubFormSubmitter::batchGet | protected | function | Wraps batch_get(). | Overrides FormSubmitter::batchGet |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.