function RoleInterface::setWeight

Same name and namespace in other branches
  1. 11.x core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::setWeight()

Sets the weight to the given value.

Parameters

int $weight: The desired weight.

Return value

$this

File

core/modules/user/src/RoleInterface.php, line 98

Class

RoleInterface
Provides an interface defining a user role entity.

Namespace

Drupal\user

Code

public function setWeight($weight);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.