public function SubFormState::setProgrammedBypassAccessCheck in Authorization 8
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
- src/
Form/ SubFormState.php, line 664
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE) {
$this->mainFormState
->setProgrammedBypassAccessCheck($programmed_bypass_access_check);
return $this;
}