public function Badge::setBadgeWeight in User Badges 8
Sets the Badge weight.
Parameters
string $weight: The Badge weight.
Return value
\Drupal\user_badges\BadgeInterface The called Badge entity.
Overrides BadgeInterface::setBadgeWeight
File
- src/
Entity/ Badge.php, line 86 - Contains \Drupal\user_badges\Entity\Badge.
Class
- Badge
- Defines the Badge entity.
Namespace
Drupal\user_badges\EntityCode
public function setBadgeWeight($weight) {
return $this
->set('weight', $weight);
}