function BulkForm::isWorkspaceSafeForm
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/field/BulkForm.php \Drupal\views\Plugin\views\field\BulkForm::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.
Overrides WorkspaceDynamicSafeFormInterface::isWorkspaceSafeForm
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ BulkForm.php, line 593
Class
- BulkForm
- Defines an actions-based bulk operation form element.
Namespace
Drupal\views\Plugin\views\fieldCode
public function isWorkspaceSafeForm(array $form, FormStateInterface $form_state) : bool {
$entity_type = $this->entityTypeManager
->getDefinition($this->getEntityTypeId());
return $this->isWorkspaceSafeEntityType($entity_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.