FormState::$triggering_element
protected property FormState::$triggering_element
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 331
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
protected $triggering_element;
© 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!FormState.php/property/FormState::triggering_element/8.1.x