constant FormBuilderInterface::AJAX_FORM_REQUEST
Request key for AJAX forms that submit to the form's original route.
This constant is distinct from a "drupal_ajax" value for \Drupal\Core\EventSubscriber\MainContentViewSubscriber::WRAPPER_FORMAT, because that one is set for all AJAX submissions, including ones with dedicated routes for which self::buildForm() should not exit early via a \Drupal\Core\Form\FormAjaxException.
@todo Re-evaluate the need for this constant after https://www.drupal.org/node/2502785 and https://www.drupal.org/node/2503429.
File
- core/lib/Drupal/Core/Form/FormBuilderInterface.php, line 23
Class
- FormBuilderInterface
- Provides an interface for form building and processing.
Namespace
Drupal\Core\FormCode
const AJAX_FORM_REQUEST = 'ajax_form';
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormBuilderInterface.php/constant/FormBuilderInterface::AJAX_FORM_REQUEST/8.1.x