private function EndnoteEncoder::setStyledText 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::setStyledText()
Add xml child style.
Parameters
\SimpleXMLElement $xml: Parent XmlElement.
string $text: Text to set.
2 calls to EndnoteEncoder::setStyledText()
- EndnoteEncoder::addTag in modules/
bibcite_endnote/ src/ Encoder/ EndnoteEncoder.php - Add value to xml tag.
- EndnoteEncoder::encode in modules/
bibcite_endnote/ src/ Encoder/ EndnoteEncoder.php
File
- modules/
bibcite_endnote/ src/ Encoder/ EndnoteEncoder.php, line 380
Class
- EndnoteEncoder
- Endnote format encoder.
Namespace
Drupal\bibcite_endnote\EncoderCode
private function setStyledText(&$xml, $text) {
$styled = $xml
->addChild('style', $text);
$styled
->addAttribute('face', 'normal');
$styled
->addAttribute('font', 'default');
$styled
->addAttribute('size', '100%');
}