function WorkspaceInformationInterface::isEntitySupported

Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/WorkspaceInformationInterface.php \Drupal\workspaces\WorkspaceInformationInterface::isEntitySupported()

Determines whether an entity can belong to a workspace.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to check.

Return value

bool TRUE if the entity can belong to a workspace, FALSE otherwise.

File

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

Class

WorkspaceInformationInterface
Provides an interface for workspace-support information.

Namespace

Drupal\workspaces

Code

public function isEntitySupported(EntityInterface $entity) : bool;

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