function _rabbit_hole_general_form_submit in Rabbit Hole 8
Same name and namespace in other branches
- 2.x rabbit_hole.module \_rabbit_hole_general_form_submit()
Handle general aspects of rabbit hole form submission.
Parameters
array $form: The form.
\Drupal\Core\Form\FormStateInterface $form_state: The state of the form.
1 string reference to '_rabbit_hole_general_form_submit'
- FormManglerService::addRabbitHoleOptionsToForm in src/
FormManglerService.php - Common functionality for adding rabbit hole options to forms.
File
- ./
rabbit_hole.module, line 36 - Contains rabbit_hole.module.
Code
function _rabbit_hole_general_form_submit(array $form, FormStateInterface $form_state) {
\Drupal::service('rabbit_hole.form_mangler')
->handleFormSubmit($form, $form_state);
}