class IgnoredWorkspaceHandler

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/Entity/Handler/IgnoredWorkspaceHandler.php \Drupal\workspaces\Entity\Handler\IgnoredWorkspaceHandler
  2. main 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

  • class \Drupal\workspaces\Entity\Handler\IgnoredWorkspaceHandler implements \Drupal\workspaces\Entity\Handler\WorkspaceHandlerInterface, \Drupal\Core\Entity\EntityHandlerInterface

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


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