You are here

public function FormState::getTriggeringElement in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getTriggeringElement()
  2. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getTriggeringElement()

Gets the form element that triggered submission.

Return value

array|null The form element that triggered submission, of NULL if there is none.

Overrides FormStateInterface::getTriggeringElement

File

core/lib/Drupal/Core/Form/FormState.php, line 820

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function &getTriggeringElement() {
  return $this->triggering_element;
}