You are here

public function PermissionEventInterface::getPermission in Organic groups 8

Returns the permission with the given name.

Parameters

string $name: The name of the permission to return.

Return value

\Drupal\og\PermissionInterface The permission.

Throws

\InvalidArgumentException Thrown when the permission with the given name does not exist.

1 method overrides PermissionEventInterface::getPermission()
PermissionEvent::getPermission in src/Event/PermissionEvent.php
Returns the permission with the given name.

File

src/Event/PermissionEventInterface.php, line 34

Class

PermissionEventInterface
Interface for PermissionEvent classes.

Namespace

Drupal\og\Event

Code

public function getPermission($name);