public function RoleSectionStorageInterface::getRoles in Workbench Access 8
Gets a list of roles assigned to a section.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.
string $id: The section id.
Return value
array An array of role ids
1 method overrides RoleSectionStorageInterface::getRoles()
- RoleSectionStorage::getRoles in src/
RoleSectionStorage.php - Gets a list of roles assigned to a section.
File
- src/
RoleSectionStorageInterface.php, line 70
Class
- RoleSectionStorageInterface
- Defines an interface for storing and retrieving sections for a role.
Namespace
Drupal\workbench_accessCode
public function getRoles(AccessSchemeInterface $scheme, $id);