public function RSSSimpleXMLElement::addChildCdata in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 modules/fb_instant_articles_rss/src/RSSSimpleXMLElement.php \Drupal\fb_instant_articles_rss\RSSSimpleXMLElement::addChildCdata()
Creates a child with CDATA value.
Parameters
string $name: The name of the child element to add.
string $cdata_text: The CDATA value of the child element.
Return value
object The child element.
File
- modules/
fb_instant_articles_rss/ src/ RSSSimpleXMLElement.php, line 42 - Contains \Drupal\fb_instant_articles_rss\RSSSimpleXMLElement.
Class
- RSSSimpleXMLElement
- Extension for SimpleXMLElement.
Namespace
Drupal\fb_instant_articles_rssCode
public function addChildCdata($name, $cdata_text) {
$child = $this
->addChild($name);
$child
->addCdata($cdata_text);
return $child;
}