You are here

protected function ReferenceNormalizerBase::extractScalar in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Normalizer/ReferenceNormalizerBase.php \Drupal\bibcite_entity\Normalizer\ReferenceNormalizerBase::extractScalar()

Extract scalar value.

Parameters

\Drupal\Core\Field\FieldItemListInterface $scalar_field: Scalar items list.

Return value

mixed Scalar value.

7 calls to ReferenceNormalizerBase::extractScalar()
BibtexReferenceNormalizer::extractFields in modules/bibcite_bibtex/src/Normalizer/BibtexReferenceNormalizer.php
Extract fields values from reference entity.
CslReferenceNormalizer::extractDate in modules/bibcite_entity/src/Normalizer/CslReferenceNormalizer.php
Extract date value to CSL format.
CslReferenceNormalizer::extractFields in modules/bibcite_entity/src/Normalizer/CslReferenceNormalizer.php
Extract fields values from reference entity.
EndnoteReferenceNormalizer::extractFields in modules/bibcite_endnote/src/Normalizer/EndnoteReferenceNormalizer.php
Extract fields values from reference entity.
MarcReferenceNormalizer::extractFields in modules/bibcite_marc/src/Normalizer/MarcReferenceNormalizer.php
Extract fields values from reference entity.

... See full list

File

modules/bibcite_entity/src/Normalizer/ReferenceNormalizerBase.php, line 318

Class

ReferenceNormalizerBase
Base normalizer class for bibcite formats.

Namespace

Drupal\bibcite_entity\Normalizer

Code

protected function extractScalar(FieldItemListInterface $scalar_field) {
  return $scalar_field->value;
}