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\Form
Code
const AJAX_FORM_REQUEST = 'ajax_form';
Please login to continue.