You are here

public function DerivedAccessControlHierarchy::applies in Workbench Access 8

Check if this access scheme applies to the given entity.

Parameters

string $entity_type_id: Entity type ID.

string $bundle: Bundle ID.

Return value

bool TRUE if this access scheme applies to the entity.

Overrides AccessControlHierarchyInterface::applies

File

tests/modules/workbench_access_test/src/Plugin/AccessControlHierarchy/DerivedAccessControlHierarchy.php, line 24

Class

DerivedAccessControlHierarchy
Defines a hierarchy based on an entity hierarchy field.

Namespace

Drupal\workbench_access_test\Plugin\AccessControlHierarchy

Code

public function applies($entity_type_id, $bundle) {
  return TRUE;
}