W3cubDocs

/Drupal 8

protected property 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 291

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $programmed_bypass_access_check = TRUE;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormState.php/property/FormState::programmed_bypass_access_check/8.1.x