You are here

public function SubFormState::setTriggeringElement in Authorization 8

Sets the form element that triggered submission.

Parameters

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

Return value

$this

Overrides FormStateInterface::setTriggeringElement

File

src/Form/SubFormState.php, line 769

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setTriggeringElement($triggering_element) {
  $this->mainFormState
    ->setTriggeringElement($triggering_element);
  return $this;
}