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 334

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $triggering_element;
doc_Drupal
2016-10-29 09:15:52
Comments
Leave a Comment

Please login to continue.