You are here

protected property FormState::$programmed_bypass_access_check in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::programmed_bypass_access_check

If TRUE, programmatic form submissions are processed without taking #access into account. Set this to FALSE when submitting a form programmatically with values that may have been input by the user executing the current request; this will cause #access to be respected as it would on a normal form submission. Defaults to TRUE.

Type: bool

File

core/lib/Drupal/Core/Form/FormState.php, line 294

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $programmed_bypass_access_check = TRUE;