class EntityTestRevPubWorkspaceHandler

Same name in other branches
  1. 10 core/modules/workspaces/tests/modules/workspaces_test/src/EntityTestRevPubWorkspaceHandler.php \Drupal\workspaces_test\EntityTestRevPubWorkspaceHandler

Provides a custom workspace handler for testing purposes.

Hierarchy

Expanded class hierarchy of EntityTestRevPubWorkspaceHandler

1 file declares its use of EntityTestRevPubWorkspaceHandler
WorkspaceInformationTest.php in core/modules/workspaces/tests/src/Kernel/WorkspaceInformationTest.php

File

core/modules/workspaces/tests/modules/workspaces_test/src/EntityTestRevPubWorkspaceHandler.php, line 13

Namespace

Drupal\workspaces_test
View source
class EntityTestRevPubWorkspaceHandler extends DefaultWorkspaceHandler {
    
    /**
     * {@inheritdoc}
     */
    public function isEntitySupported(EntityInterface $entity) : bool {
        return $entity->bundle() !== 'ignored_bundle';
    }

}

Members


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