You are here

public function OgRole::getLabel in Organic groups 8

Returns the label.

Return value

string The label.

Overrides OgRoleInterface::getLabel

File

src/Entity/OgRole.php, line 78

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function getLabel() {
  return $this
    ->get('label');
}