function WorkspaceDynamicSafeFormInterface::isWorkspaceSafeForm

Same name in other branches
  1. 10 core/lib/Drupal/Core/Form/WorkspaceDynamicSafeFormInterface.php \Drupal\Core\Form\WorkspaceDynamicSafeFormInterface::isWorkspaceSafeForm()

Determines whether the form is safe to be submitted in a workspace.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

bool TRUE if the form is workspace-safe, FALSE otherwise.

2 methods override WorkspaceDynamicSafeFormInterface::isWorkspaceSafeForm()
BulkForm::isWorkspaceSafeForm in core/modules/views/src/Plugin/views/field/BulkForm.php
Determines whether the form is safe to be submitted in a workspace.
DeleteMultipleForm::isWorkspaceSafeForm in core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php
Determines whether the form is safe to be submitted in a workspace.

File

core/lib/Drupal/Core/Form/WorkspaceDynamicSafeFormInterface.php, line 28

Class

WorkspaceDynamicSafeFormInterface
Defines an interface for forms that can be workspace-safe.

Namespace

Drupal\Core\Form

Code

public function isWorkspaceSafeForm(array $form, FormStateInterface $form_state) : bool;

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