function WorkspaceInformationInterface::isEntityDeletable

Same name in other branches
  1. 11.x core/modules/workspaces/src/WorkspaceInformationInterface.php \Drupal\workspaces\WorkspaceInformationInterface::isEntityDeletable()

Determines whether an entity can be deleted in the given workspace.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity object which needs to be checked.

\Drupal\workspaces\WorkspaceInterface $workspace: The workspace in which the entity needs to be checked.

Return value

bool TRUE if the entity can be deleted, FALSE otherwise.

File

core/modules/workspaces/src/WorkspaceInformationInterface.php, line 84

Class

WorkspaceInformationInterface
Provides an interface for workspace-support information.

Namespace

Drupal\workspaces

Code

public function isEntityDeletable(EntityInterface $entity, WorkspaceInterface $workspace) : bool;

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