You are here

public function RoleSectionStorageInterface::addRole in Workbench Access 8

Adds a set of sections to 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 assign to this role.

1 method overrides RoleSectionStorageInterface::addRole()
RoleSectionStorage::addRole in src/RoleSectionStorage.php
Adds a set of sections to a role.

File

src/RoleSectionStorageInterface.php, line 23

Class

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

Namespace

Drupal\workbench_access

Code

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