8.2.x FormStateInterface.php public FormStateInterface::setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE)
8.0.x FormStateInterface.php public FormStateInterface::setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE)
8.1.x FormStateInterface.php public FormStateInterface::setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE)
8.3.x FormStateInterface.php public FormStateInterface::setProgrammedBypassAccessCheck($programmed_bypass_access_check = TRUE)

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

1 method overrides FormStateInterface::setProgrammedBypassAccessCheck()

File

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

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);