You are here

protected function RISEncoder::buildMultiLine in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_ris/src/Encoder/RISEncoder.php \Drupal\bibcite_ris\Encoder\RISEncoder::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 RISEncoder::buildMultiLine()
RISEncoder::buildEntry in modules/bibcite_ris/src/Encoder/RISEncoder.php
Build RIS entry string.

File

modules/bibcite_ris/src/Encoder/RISEncoder.php, line 258

Class

RISEncoder
RIS format encoder.

Namespace

Drupal\bibcite_ris\Encoder

Code

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