You are here

public function PermissionEventInterface::setPermission in Organic groups 8

Sets the permission with the given data.

Parameters

\Drupal\og\PermissionInterface $permission: The permission to set.

Throws

\InvalidArgumentException Thrown when the permission has no name or title.

1 method overrides PermissionEventInterface::setPermission()
PermissionEvent::setPermission in src/Event/PermissionEvent.php
Sets the permission with the given data.

File

src/Event/PermissionEventInterface.php, line 74

Class

PermissionEventInterface
Interface for PermissionEvent classes.

Namespace

Drupal\og\Event

Code

public function setPermission(PermissionInterface $permission);