You are here

public function Contributor::setFirstName 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::setFirstName()

Sets the Contributor first name.

Parameters

string $first_name: The Contributor first name.

Return value

\Drupal\bibcite_entity\Entity\ContributorInterface The called Contributor entity.

Overrides ContributorInterface::setFirstName

File

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

Class

Contributor
Defines the Contributor entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setFirstName($first_name) {
  $this
    ->set('first_name', $first_name);
  return $this;
}