You are here

public static function WorkbenchAccessManagerInterface::checkTree in Workbench Access 8

Checks that an entity belongs to a user section or its children.

Parameters

\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.

array $entity_sections: The section assignments for the entity. An array of section ids.

array $user_sections: The section assignments for the user. An array of section ids.

return boolean.

1 method overrides WorkbenchAccessManagerInterface::checkTree()
WorkbenchAccessManager::checkTree in src/WorkbenchAccessManager.php
Checks that an entity belongs to a user section or its children.

File

src/WorkbenchAccessManagerInterface.php, line 28

Class

WorkbenchAccessManagerInterface
Defines an interface handling Workbench Access configuration.

Namespace

Drupal\workbench_access

Code

public static function checkTree(AccessSchemeInterface $scheme, array $entity_sections, array $user_sections);