You are here

protected function BibtexEncoder::buildStart in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_bibtex/src/Encoder/BibtexEncoder.php \Drupal\bibcite_bibtex\Encoder\BibtexEncoder::buildStart()

Build first string for BibTeX entry.

Parameters

string $type: Publication type in BibTeX format.

string $reference: Reference key.

Return value

string First entry string.

1 call to BibtexEncoder::buildStart()
BibtexEncoder::buildEntry in modules/bibcite_bibtex/src/Encoder/BibtexEncoder.php
Build BibTeX entry string.

File

modules/bibcite_bibtex/src/Encoder/BibtexEncoder.php, line 183

Class

BibtexEncoder
BibTeX format encoder.

Namespace

Drupal\bibcite_bibtex\Encoder

Code

protected function buildStart($type, $reference) {
  return '@' . $type . '{' . $reference . ',' . "\n";
}