You are here

public function RoleWatchdog::setName in Role Watchdog 8

Sets the Role Watchdog name.

Parameters

string $name: The Role Watchdog name.

Return value

\Drupal\role_watchdog\Entity\RoleWatchdogInterface The called Role Watchdog entity.

Overrides RoleWatchdogInterface::setName

File

src/Entity/RoleWatchdog.php, line 86

Class

RoleWatchdog
Defines the Role Watchdog entity.

Namespace

Drupal\role_watchdog\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}