You are here

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

Sets the Contributor full name.

Full name string will be parsed and another fields will be changed.

Parameters

string $name: Full name sting.

Return value

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

Overrides ContributorInterface::setName

File

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

Class

Contributor
Defines the Contributor entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}