You are here

public function GroupContentOperationPermission::setOperation in Organic groups 8

Sets the operation to which this permission applies.

Parameters

string $operation: The operation. For example 'create', 'update', or 'delete'.

Return value

$this

File

src/GroupContentOperationPermission.php, line 114

Class

GroupContentOperationPermission
A group level permission.

Namespace

Drupal\og

Code

public function setOperation($operation) {
  $this
    ->set('operation', $operation);
  return $this;
}