You are here

public function Permission::setName in Organic groups 8

Sets the machine name of the permission.

Parameters

string $name: The machine name.

Return value

$this

Overrides PermissionInterface::setName

File

src/Permission.php, line 89

Class

Permission
Base class for OG permissions.

Namespace

Drupal\og

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}