You are here

protected function PermissionProvider::getEntityCreatePermission in Group 2.0.x

Gets the name of the create permission for the entity.

Return value

string|false The permission name or FALSE if it does not apply.

1 call to PermissionProvider::getEntityCreatePermission()
PermissionProvider::getPermission in src/Plugin/Group/RelationHandlerDefault/PermissionProvider.php
Gets the name of the permission for the given operation, target and scope.

File

src/Plugin/Group/RelationHandlerDefault/PermissionProvider.php, line 291

Class

PermissionProvider
Provides group permissions for group relation plugins.

Namespace

Drupal\group\Plugin\Group\RelationHandlerDefault

Code

protected function getEntityCreatePermission() {
  if ($this->definesEntityPermissions) {
    return "create {$this->pluginId} entity";
  }
  return FALSE;
}