You are here

public function Badge::setName in User Badges 8

Sets the Badge name.

Parameters

string $name: The Badge name.

Return value

\Drupal\user_badges\BadgeInterface The called Badge entity.

Overrides BadgeInterface::setName

File

src/Entity/Badge.php, line 71
Contains \Drupal\user_badges\Entity\Badge.

Class

Badge
Defines the Badge entity.

Namespace

Drupal\user_badges\Entity

Code

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