class IgnoredWorkspaceHandler

Same name in other branches
  1. 10 core/modules/workspaces/src/Entity/Handler/IgnoredWorkspaceHandler.php \Drupal\workspaces\Entity\Handler\IgnoredWorkspaceHandler

Defines a handler for entity types that are ignored by workspaces.

@internal

Hierarchy

Expanded class hierarchy of IgnoredWorkspaceHandler

7 files declare their use of IgnoredWorkspaceHandler
EntityTypeInfo.php in core/modules/workspaces/src/EntityTypeInfo.php
EntityTypeInfo.php in core/modules/workspaces/src/Hook/EntityTypeInfo.php
Workspace.php in core/modules/workspaces/src/Entity/Workspace.php
WorkspaceInformation.php in core/modules/workspaces/src/WorkspaceInformation.php
WorkspaceInformationTest.php in core/modules/workspaces/tests/src/Kernel/WorkspaceInformationTest.php

... See full list

File

core/modules/workspaces/src/Entity/Handler/IgnoredWorkspaceHandler.php, line 15

Namespace

Drupal\workspaces\Entity\Handler
View source
class IgnoredWorkspaceHandler implements WorkspaceHandlerInterface, EntityHandlerInterface {
    
    /**
     * {@inheritdoc}
     */
    public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
        return new static();
    }
    
    /**
     * {@inheritdoc}
     */
    public function isEntitySupported(EntityInterface $entity) : bool {
        return FALSE;
    }

}

Members


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