You are here

public function BarAdminPermissionProvider::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/BarAdminPermissionProvider.php, line 28

Class

BarAdminPermissionProvider
Alters admin permission for a specific plugin to original + 'bar'.

Namespace

Drupal\group_test_plugin_alter\Plugin\Group\RelationHandler

Code

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