Role::getWeight

public Role::getWeight()

Returns the weight.

Return value

int The weight of this role.

Overrides RoleInterface::getWeight

File

core/modules/user/src/Entity/Role.php, line 97

Class

Role
Defines the user role entity class.

Namespace

Drupal\user\Entity

Code

public function getWeight() {
  return $this->get('weight');
}
doc_Drupal
2016-10-29 09:38:43
Comments
Leave a Comment

Please login to continue.