public function DerivedAccessControlHierarchy::getEntityValues in Workbench Access 8
Retrieves the access control values from an entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: A Drupal entity, typically a node or a user.
Return value
array An simple array of section ids from the entity being checked.
Overrides AccessControlHierarchyInterface::getEntityValues
File
- tests/
modules/ workbench_access_test/ src/ Plugin/ AccessControlHierarchy/ DerivedAccessControlHierarchy.php, line 31
Class
- DerivedAccessControlHierarchy
- Defines a hierarchy based on an entity hierarchy field.
Namespace
Drupal\workbench_access_test\Plugin\AccessControlHierarchyCode
public function getEntityValues(EntityInterface $entity) {
return [];
}