You are here

protected property FormState::$triggering_element in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\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;