You are here

public function GroupContentOperationPermission::setEntityType in Organic groups 8

Sets the group content entity type ID to which this permission applies.

Parameters

string $entity_type: The group content entity type ID.

Return value

$this

File

src/GroupContentOperationPermission.php, line 68

Class

GroupContentOperationPermission
A group level permission.

Namespace

Drupal\og

Code

public function setEntityType($entity_type) {
  $this
    ->set('entity type', $entity_type);
  return $this;
}