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;
doc_Drupal
2016-10-29 09:15:51
Comments
Leave a Comment

Please login to continue.