public function BadgeInterface::setBadgeRoleId in User Badges 8
Sets Role id of Badge.
Parameters
integer $rid: Role id of Role
Return value
\Drupal\user_badges\BadgeInterface The called Badge entity.
1 method overrides BadgeInterface::setBadgeRoleId()
- Badge::setBadgeRoleId in src/
Entity/ Badge.php - Sets Role id of Badge.
File
- src/
BadgeInterface.php, line 83 - Contains \Drupal\user_badges\BadgeInterface.
Class
- BadgeInterface
- Provides an interface for defining Badge entities.
Namespace
Drupal\user_badgesCode
public function setBadgeRoleId($rid);