You are here

private function EndnoteEncoder::getString in Bibliography & Citation 2.0.x

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

Get string from element.

Parameters

\SimpleXMLElement $element: Element value.

Return value

string Result string.

1 call to EndnoteEncoder::getString()
EndnoteEncoder::decode in modules/bibcite_endnote/src/Encoder/EndnoteEncoder.php

File

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

Class

EndnoteEncoder
Endnote format encoder.

Namespace

Drupal\bibcite_endnote\Encoder

Code

private function getString($element) {
  return $element->style
    ->__toString() ?: $element
    ->__toString();
}