public function Atom::getLanguage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getLanguage()
Get the feed language
Return value
string|null
Overrides FeedInterface::getLanguage
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ Atom.php, line 221
Class
Namespace
Zend\Feed\Reader\FeedCode
public function getLanguage() {
if (array_key_exists('language', $this->data)) {
return $this->data['language'];
}
$language = $this
->getExtension('Atom')
->getLanguage();
if (!$language) {
$language = $this->xpath
->evaluate('string(//@xml:lang[1])');
}
if (!$language) {
$language = null;
}
$this->data['language'] = $language;
return $this->data['language'];
}