function WorkspaceInformation::isEntityTypeIgnored

Same name in other branches
  1. 11.x core/modules/workspaces/src/WorkspaceInformation.php \Drupal\workspaces\WorkspaceInformation::isEntityTypeIgnored()
1 call to WorkspaceInformation::isEntityTypeIgnored()
WorkspaceInformation::isEntityIgnored in core/modules/workspaces/src/WorkspaceInformation.php

File

core/modules/workspaces/src/WorkspaceInformation.php, line 103

Class

WorkspaceInformation
General service for workspace support information.

Namespace

Drupal\workspaces

Code

public function isEntityTypeIgnored(EntityTypeInterface $entity_type) : bool {
    if (!isset($this->ignored[$entity_type->id()])) {
        $this->ignored[$entity_type->id()] = $entity_type->hasHandlerClass('workspace') && is_a($entity_type->getHandlerClass('workspace'), IgnoredWorkspaceHandler::class, TRUE);
    }
    return $this->ignored[$entity_type->id()];
}

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