You are here

public function GroupRoleInterface::setWeight in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/GroupRoleInterface.php \Drupal\group\Entity\GroupRoleInterface::setWeight()

Sets the weight to the given value.

Parameters

int $weight: The desired weight.

Return value

\Drupal\group\Entity\GroupRoleInterface The group role this was called on.

1 method overrides GroupRoleInterface::setWeight()
GroupRole::setWeight in src/Entity/GroupRole.php
Sets the weight to the given value.

File

src/Entity/GroupRoleInterface.php, line 29

Class

GroupRoleInterface
Provides an interface defining a group role entity.

Namespace

Drupal\group\Entity

Code

public function setWeight($weight);