class IgnoredWorkspaceHandler

Same name and namespace 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

5 files declare their use of IgnoredWorkspaceHandler
EntityTypeInfo.php in core/modules/workspaces/src/EntityTypeInfo.php
WorkspaceInformation.php in core/modules/workspaces/src/WorkspaceInformation.php
WorkspaceInformationTest.php in core/modules/workspaces/tests/src/Kernel/WorkspaceInformationTest.php
WorkspaceTestTrait.php in core/modules/workspaces/tests/src/Kernel/WorkspaceTestTrait.php
WorkspaceTestUtilities.php in core/modules/workspaces/tests/src/Functional/WorkspaceTestUtilities.php

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

Title Sort descending Modifiers Object type Summary Overriden Title
IgnoredWorkspaceHandler::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance
IgnoredWorkspaceHandler::isEntitySupported public function Determines if an entity should be tracked in a workspace. Overrides WorkspaceHandlerInterface::isEntitySupported

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