You are here

public function SubFormState::setProgrammed in Authorization 8

Sets that this form was submitted programmatically.

Parameters

bool $programmed: If TRUE, the form was submitted programmatically.

Return value

$this

Overrides FormStateInterface::setProgrammed

File

src/Form/SubFormState.php, line 649

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setProgrammed($programmed = TRUE) {
  $this->mainFormState
    ->setProgrammed($programmed);
  return $this;
}