function BulkForm::isWorkspaceSafeForm

Same name in other branches
  1. 10 core/modules/views/src/Plugin/views/field/BulkForm.php \Drupal\views\Plugin\views\field\BulkForm::isWorkspaceSafeForm()

Overrides WorkspaceDynamicSafeFormInterface::isWorkspaceSafeForm

File

core/modules/views/src/Plugin/views/field/BulkForm.php, line 589

Class

BulkForm
Defines an actions-based bulk operation form element.

Namespace

Drupal\views\Plugin\views\field

Code

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.