public function Badge::getName in User Badges 8
Gets the Badge name.
Return value
string Name of the Badge.
Overrides BadgeInterface::getName
File
- src/
Entity/ Badge.php, line 65 - Contains \Drupal\user_badges\Entity\Badge.
Class
- Badge
- Defines the Badge entity.
Namespace
Drupal\user_badges\EntityCode
public function getName() {
return $this
->get('name')->value;
}