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\ogCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}