protected function AbstractEntry::loadExtensions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::loadExtensions()
Load extensions from Zend\Feed\Reader\Reader
Return value
void
1 call to AbstractEntry::loadExtensions()
- AbstractEntry::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ AbstractEntry.php - Constructor
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ AbstractEntry.php, line 217
Class
Namespace
Zend\Feed\Reader\EntryCode
protected function loadExtensions() {
$all = Reader\Reader::getExtensions();
$manager = Reader\Reader::getExtensionManager();
$feed = $all['entry'];
foreach ($feed as $extension) {
if (in_array($extension, $all['core'])) {
continue;
}
$plugin = $manager
->get($extension);
$plugin
->setEntryElement($this
->getElement());
$plugin
->setEntryKey($this->entryKey);
$plugin
->setType($this->data['type']);
$this->extensions[$extension] = $plugin;
}
}