public function GroupContentPermissionProvider::getRelationCreatePermission in Group 8
Gets the name of the create permission for the relation.
Return value
string|false The permission name or FALSE if it does not apply.
Overrides GroupContentPermissionProviderInterface::getRelationCreatePermission
2 calls to GroupContentPermissionProvider::getRelationCreatePermission()
- GroupContentPermissionProvider::buildPermissions in src/
Plugin/ GroupContentPermissionProvider.php - Provides a list of group permissions the plugin exposes.
- GroupContentPermissionProvider::getPermission in src/
Plugin/ GroupContentPermissionProvider.php - Gets the name of the permission for the given operation, target and scope.
1 method overrides GroupContentPermissionProvider::getRelationCreatePermission()
- GroupMembershipPermissionProvider::getRelationCreatePermission in src/
Plugin/ GroupMembershipPermissionProvider.php - Gets the name of the create permission for the relation.
File
- src/
Plugin/ GroupContentPermissionProvider.php, line 96
Class
- GroupContentPermissionProvider
- Provides group permissions for GroupContent entities.
Namespace
Drupal\group\PluginCode
public function getRelationCreatePermission() {
return "create {$this->pluginId} content";
}