function FormStateInterface::setProgrammedBypassAccessCheck

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setProgrammedBypassAccessCheck()
  2. 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setProgrammedBypassAccessCheck()
  3. 10 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::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

See also

\Drupal\Core\Form\FormState::$programmed_bypass_access_check

2 methods override FormStateInterface::setProgrammedBypassAccessCheck()
FormState::setProgrammedBypassAccessCheck in core/lib/Drupal/Core/Form/FormState.php
Sets if this form submission should bypass #access.
FormStateDecoratorBase::setProgrammedBypassAccessCheck in core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
Sets if this form submission should bypass #access.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 921

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.