You are here

public function Permission::getName in Organic groups 8

Returns the machine name of the permission.

Return value

string The permission machine name.

Overrides PermissionInterface::getName

File

src/Permission.php, line 82

Class

Permission
Base class for OG permissions.

Namespace

Drupal\og

Code

public function getName() {
  return $this
    ->get('name');
}