You are here

public function Badge::getBadgeWeight in User Badges 8

Gets the Badge weight.

Return value

integer Weight of the Badge.

Overrides BadgeInterface::getBadgeWeight

File

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

Class

Badge
Defines the Badge entity.

Namespace

Drupal\user_badges\Entity

Code

public function getBadgeWeight() {
  return $this
    ->get('weight')->value;
}