You are here

public function ContributorCategory::setWeight in Bibliography & Citation 8

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

Set weight of the Contributor category.

Parameters

int $weight: New weight of the Contributor category.

Return value

\Drupal\bibcite_entity\Entity\ContributorCategoryInterface The called Contributor category object.

Overrides ContributorCategoryInterface::setWeight

File

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

Class

ContributorCategory
Defines the Contributor category entity.

Namespace

Drupal\bibcite_entity\Entity

Code

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