public function FormState::setProgrammedBypassAccessCheck in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setProgrammedBypassAccessCheck()
Sets if this form submission should bypass #access.
Parameters
bool $programmed_bypass_access_check: If TRUE, programmatic form submissions are processed without taking #access into account.
Return value
$this
Overrides FormStateInterface::setProgrammedBypassAccessCheck
See also
\Drupal\Core\Form\FormState::$programmed_bypass_access_check
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 690 - Contains \Drupal\Core\Form\FormState.
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE) {
$this->programmed_bypass_access_check = (bool) $programmed_bypass_access_check;
return $this;
}