You are here

public function BazAdminPermissionProvider::getAdminPermission in Group 2.0.x

Gets the name of the admin permission.

Return value

string|false The admin permission name or FALSE if none was set.

Overrides PermissionProviderTrait::getAdminPermission

File

tests/modules/group_test_plugin_alter/src/Plugin/Group/RelationHandler/BazAdminPermissionProvider.php, line 28

Class

BazAdminPermissionProvider
Alters admin permission for a specific plugin to original + 'baz'.

Namespace

Drupal\group_test_plugin_alter\Plugin\Group\RelationHandler

Code

public function getAdminPermission() {
  return $this->parent
    ->getAdminPermission() . 'baz';
}