You are here

protected function EndnoteEncoder::buildMultiLine in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_endnote/src/Encoder/EndnoteEncoder.php \Drupal\bibcite_endnote\Encoder\EndnoteEncoder::buildMultiLine()

Build multi line entry.

Parameters

string $key: Line key.

array $value: Array of multi line values.

Return value

string Multi line entry.

1 call to EndnoteEncoder::buildMultiLine()
EndnoteEncoder::buildEntry in modules/bibcite_endnote/src/Encoder/EndnoteEncoder.php
Build tagged entry string.

File

modules/bibcite_endnote/src/Encoder/EndnoteEncoder.php, line 475

Class

EndnoteEncoder
Endnote format encoder.

Namespace

Drupal\bibcite_endnote\Encoder

Code

protected function buildMultiLine($key, array $value) {
  $lines = '';
  foreach ($value as $item) {
    $lines .= $this
      ->buildLine($key, $item);
  }
  return $lines;
}