You are here

public function SubFormState::getTriggeringElement in Authorization 8

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

src/Form/SubFormState.php, line 777

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

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