You are here

public function RoleSectionStorageInterface::removeRole in Workbench Access 8

Removes a set of sections from a role.

Parameters

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

string $role_id: A role id.

array $sections: An array of section ids to remove from this role.

1 method overrides RoleSectionStorageInterface::removeRole()
RoleSectionStorage::removeRole in src/RoleSectionStorage.php
Removes a set of sections from a role.

File

src/RoleSectionStorageInterface.php, line 35

Class

RoleSectionStorageInterface
Defines an interface for storing and retrieving sections for a role.

Namespace

Drupal\workbench_access

Code

public function removeRole(AccessSchemeInterface $scheme, $role_id, array $sections = []);