You are here

protected function ContributorStorage::initFieldValues in Bibliography & Citation 8

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

Initializes field values.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: An entity object.

array $values: (optional) An associative array of initial field values keyed by field name. If none is provided default values will be applied.

array $field_names: (optional) An associative array of field names to be initialized. If none is provided all fields will be initialized.

Overrides ContentEntityStorageBase::initFieldValues

File

modules/bibcite_entity/src/ContributorStorage.php, line 18

Class

ContributorStorage
Contributor storage.

Namespace

Drupal\bibcite_entity

Code

protected function initFieldValues(ContentEntityInterface $entity, array $values = [], array $field_names = []) {
  $this
    ->initContributorName($entity, $values);
  parent::initFieldValues($entity, $values, $field_names);
}