You are here

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

Sets the Contributor prefix.

Parameters

string $prefix: The Contributor prefix.

Return value

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

Overrides ContributorInterface::setPrefix

File

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

Class

Contributor
Defines the Contributor entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setPrefix($prefix) {
  $this
    ->set('prefix', $prefix);
  return $this;
}