You are here

public function PermissionEventInterface::getGroupContentOperationPermission in Organic groups 8

Returns a group content operation permission by its identifying properties.

Parameters

string $entity_type_id: The group content entity type ID to which this permission applies.

string $bundle_id: The group content bundle ID to which this permission applies.

string $operation: The entity operation to which this permission applies.

bool $owner: Set to FALSE if this permission applies to all entities, or to TRUE if it only applies to the ones owned by the user. Defaults to FALSE.

Return value

\Drupal\og\GroupContentOperationPermission The permission.

Throws

\InvalidArgumentException Thrown if the permission with the given properties does not exist.

1 method overrides PermissionEventInterface::getGroupContentOperationPermission()
PermissionEvent::getGroupContentOperationPermission in src/Event/PermissionEvent.php
Returns a group content operation permission by its identifying properties.

File

src/Event/PermissionEventInterface.php, line 55

Class

PermissionEventInterface
Interface for PermissionEvent classes.

Namespace

Drupal\og\Event

Code

public function getGroupContentOperationPermission($entity_type_id, $bundle_id, $operation, $owner = FALSE);