public function FooAdminPermissionProvider::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/ FooAdminPermissionProvider.php, line 28
Class
- FooAdminPermissionProvider
- Alters admin permission for all plugins to original + 'foo'.
Namespace
Drupal\group_test_plugin_alter\Plugin\Group\RelationHandlerCode
public function getAdminPermission() {
return $this->parent
->getAdminPermission() . 'foo';
}