You are here

public function PermissionProviderInterface::buildPermissions in Group 2.0.x

Provides a list of group permissions the plugin exposes.

If you have some group permissions that would only make sense when your plugin is installed, you may define those here. They will not be shown on the permission configuration form unless the plugin is installed.

Return value

array An array of group permissions, see GroupPermissionHandlerInterface for the structure of a group permission.

See also

GroupPermissionHandlerInterface::getPermissions()

File

src/Plugin/Group/RelationHandler/PermissionProviderInterface.php, line 47

Class

PermissionProviderInterface
Provides a common interface for group relation permission providers.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

public function buildPermissions();