The form element that triggered submission, which may or may not be a button (in the case of Ajax forms). This key is often used to distinguish between various buttons in a submit handler, and is also used in Ajax handlers.
This property is uncacheable.
Type: array|null
File
- core/lib/Drupal/Core/Form/FormState.php, line 334
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\Form
Code
protected $triggering_element;
Please login to continue.