public function FormState::setProgrammed in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setProgrammed()
Sets that this form was submitted programmatically.
Parameters
bool $programmed: If TRUE, the form was submitted programmatically.
Return value
$this
Overrides FormStateInterface::setProgrammed
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 672
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function setProgrammed($programmed = TRUE) {
$this->programmed = (bool) $programmed;
return $this;
}