function EntityTestRevPubWorkspaceHandler::isEntitySupported

Overrides DefaultWorkspaceHandler::isEntitySupported

File

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

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.