You are here

public function OgRole::setId in Organic groups 8

Sets the ID of the role.

Parameters

string $id: The machine name of the role.

Return value

$this

Overrides OgRoleInterface::setId

1 call to OgRole::setId()
OgRole::save in src/Entity/OgRole.php
Saves an entity permanently.

File

src/Entity/OgRole.php, line 70

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function setId($id) {
  $this
    ->set('id', $id);
  return $this;
}