You are here

public function OgRole::setName in Organic groups 8

Sets the role name.

Parameters

string $name: The role name.

Return value

$this

Overrides OgRoleInterface::setName

1 call to OgRole::setName()
OgRole::getName in src/Entity/OgRole.php
Returns the role name.

File

src/Entity/OgRole.php, line 159

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function setName($name) {
  $this->name = $name;
  return $this;
}