function WorkspaceManager::isEntityTypeSupported

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::isEntityTypeSupported()
  2. 8.9.x core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::isEntityTypeSupported()

Returns whether an entity type can belong to a workspace or not.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to check.

Return value

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

Overrides WorkspaceManagerInterface::isEntityTypeSupported

File

core/modules/workspaces/src/WorkspaceManager.php, line 150

Class

WorkspaceManager
Provides the workspace manager.

Namespace

Drupal\workspaces

Code

public function isEntityTypeSupported(EntityTypeInterface $entity_type) {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\workspaces\\WorkspaceInformation::isEntityTypeSupported instead. See https://www.drupal.org/node/3324297', E_USER_DEPRECATED);
  return $this->workspaceInfo
    ->isEntityTypeSupported($entity_type);
}

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