function EntityTestRevPubWorkspaceHandler::isEntitySupported

Same name and namespace in other branches
  1. 10 core/modules/workspaces/tests/modules/workspaces_test/src/EntityTestRevPubWorkspaceHandler.php \Drupal\workspaces_test\EntityTestRevPubWorkspaceHandler::isEntitySupported()

Overrides DefaultWorkspaceHandler::isEntitySupported

File

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

Class

EntityTestRevPubWorkspaceHandler
Provides a custom workspace handler for testing purposes.

Namespace

Drupal\workspaces_test

Code

public function isEntitySupported(EntityInterface $entity) : bool {
    return $entity->bundle() !== 'ignored_bundle';
}

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