FormState::getTriggeringElement

public &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

1
2
3
public function &getTriggeringElement() {
  return $this->triggering_element;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.