You are here

public function ReferenceType::setFields in Bibliography & Citation 8

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

Set fields configuration array.

Parameters

array $fields: Array of fields configuration.

Return value

\Drupal\bibcite_entity\Entity\ReferenceTypeInterface Callable entity object.

Overrides ReferenceTypeInterface::setFields

File

modules/bibcite_entity/src/Entity/ReferenceType.php, line 145

Class

ReferenceType
Defines the Reference type entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setFields(array $fields) {
  $this->fields = $fields;
  return $this;
}