private function EndnoteEncoder::getString in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x 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\EncoderCode
private function getString($element) {
return $element->style
->__toString() ?: $element
->__toString();
}