You are here

public function ContributorRole::getWeight 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::getWeight()

Get weight of the Contributor role.

Return value

int Weight of the Contributor role.

Overrides ContributorRoleInterface::getWeight

File

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

Class

ContributorRole
Defines the Contributor role entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function getWeight() {
  return $this
    ->get('weight');
}