You are here

public function Contributor::getFirstName in Bibliography & Citation 8

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

Get the Contributor first name.

Return value

string First name of Contributor.

Overrides ContributorInterface::getFirstName

File

modules/bibcite_entity/src/Entity/Contributor.php, line 99

Class

Contributor
Defines the Contributor entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function getFirstName() {
  return $this
    ->get('first_name')->value;
}