You are here

public function RoleWatchdog::getName in Role Watchdog 8

Gets the Role Watchdog name.

Return value

string Name of the Role Watchdog.

Overrides RoleWatchdogInterface::getName

File

src/Entity/RoleWatchdog.php, line 79

Class

RoleWatchdog
Defines the Role Watchdog entity.

Namespace

Drupal\role_watchdog\Entity

Code

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