You are here

public function ContributorRole::setWeight in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Entity/ContributorRole.php \Drupal\bibcite_entity\Entity\ContributorRole::setWeight()

Set weight of the Contributor role.

Parameters

int $weight: New weight of the Contributor role.

Return value

\Drupal\bibcite_entity\Entity\ContributorRoleInterface The called Contributor role object.

Overrides ContributorRoleInterface::setWeight

File

modules/bibcite_entity/src/Entity/ContributorRole.php, line 75

Class

ContributorRole
Defines the Contributor role entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setWeight($weight) {
  return $this
    ->set('weight', $weight);
}