You are here

public function Badge::getType in User Badges 8

Gets the Badge type.

Return value

string The Badge type.

Overrides BadgeInterface::getType

File

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

Class

Badge
Defines the Badge entity.

Namespace

Drupal\user_badges\Entity

Code

public function getType() {
  return $this
    ->bundle();
}