You are here

public function UserSectionStorage::getPotentialEditorsRoles in Workbench Access 8

Gets a list of editors roles who may be assigned to a section.

Parameters

string $id: The section id.

Return value

array An array of role ids.

Overrides UserSectionStorageInterface::getPotentialEditorsRoles

File

src/UserSectionStorage.php, line 202

Class

UserSectionStorage
Defines a class for storing and retrieving sections assigned to a user.

Namespace

Drupal\workbench_access

Code

public function getPotentialEditorsRoles($id) {
  return $this->roleSectionStorage
    ->getPotentialRolesFiltered($id);
}