Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::getTriggeringElement()
  2. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::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/FormStateDecoratorBase.php, line 379

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

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