You are here

public function OgRole::setLabel in Organic groups 8

Sets the label.

Parameters

string $label: The label to set.

Return value

$this

Overrides OgRoleInterface::setLabel

File

src/Entity/OgRole.php, line 85

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function setLabel($label) {
  $this
    ->set('label', $label);
  return $this;
}