public function PermissionProviderTrait::getAdminPermission in Group 2.0.x
4 methods override PermissionProviderTrait::getAdminPermission()
- BarAdminPermissionProvider::getAdminPermission in tests/
modules/ group_test_plugin_alter/ src/ Plugin/ Group/ RelationHandler/ BarAdminPermissionProvider.php - Gets the name of the admin permission.
- BazAdminPermissionProvider::getAdminPermission in tests/
modules/ group_test_plugin_alter/ src/ Plugin/ Group/ RelationHandler/ BazAdminPermissionProvider.php - Gets the name of the admin permission.
- FooAdminPermissionProvider::getAdminPermission in tests/
modules/ group_test_plugin_alter/ src/ Plugin/ Group/ RelationHandler/ FooAdminPermissionProvider.php - Gets the name of the admin permission.
- PermissionProvider::getAdminPermission in src/
Plugin/ Group/ RelationHandlerDefault/ PermissionProvider.php - Gets the name of the admin permission.
File
- src/
Plugin/ Group/ RelationHandler/ PermissionProviderTrait.php, line 63
Class
- PermissionProviderTrait
- Trait for group relation permission providers.
Namespace
Drupal\group\Plugin\Group\RelationHandlerCode
public function getAdminPermission() {
if (!isset($this->parent)) {
throw new \LogicException('Using PermissionProviderTrait without assigning a parent or overwriting the methods.');
}
return $this->parent
->getAdminPermission();
}