You are here

public static function WorkbenchAccessManagerInterface::getAllSections in Workbench Access 8

Returns a flat array of all active section ids.

Used to display assignments for admins.

Parameters

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

bool $root_only: If TRUE, only show the root-level assignments.

Return value

array All sections for given scheme.

1 method overrides WorkbenchAccessManagerInterface::getAllSections()
WorkbenchAccessManager::getAllSections in src/WorkbenchAccessManager.php
Returns a flat array of all active section ids.

File

src/WorkbenchAccessManagerInterface.php, line 43

Class

WorkbenchAccessManagerInterface
Defines an interface handling Workbench Access configuration.

Namespace

Drupal\workbench_access

Code

public static function getAllSections(AccessSchemeInterface $scheme, $root_only = FALSE);