You are here

public function GroupMembershipPermissionProvider::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 GroupContentPermissionProvider::getRelationCreatePermission

File

src/Plugin/GroupMembershipPermissionProvider.php, line 35

Class

GroupMembershipPermissionProvider
Provides group permissions for group_membership GroupContent entities.

Namespace

Drupal\group\Plugin

Code

public function getRelationCreatePermission() {

  // Create is handled by the admin permission.
  return FALSE;
}