public function RoleSectionStorageInterface::getRoleSections in Workbench Access 8
Gets the sections assigned to a user by way of their roles.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.
\Drupal\Core\Session\AccountInterface $account: The account to retrieve sections for by way of their roles.
Return value
array Array of section IDs.
1 method overrides RoleSectionStorageInterface::getRoleSections()
- RoleSectionStorage::getRoleSections in src/
RoleSectionStorage.php - Gets the sections assigned to a user by way of their roles.
File
- src/
RoleSectionStorageInterface.php, line 83
Class
- RoleSectionStorageInterface
- Defines an interface for storing and retrieving sections for a role.
Namespace
Drupal\workbench_accessCode
public function getRoleSections(AccessSchemeInterface $scheme, AccountInterface $account);