You are here

public function AbstractFeed::getExtension in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::getExtension()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::getExtension()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::getExtension()

Return an Extension object with the matching name (postfixed with _Feed)

Parameters

string $name:

Return value

\Zend\Feed\Reader\Extension\AbstractFeed

File

vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php, line 264

Class

AbstractFeed

Namespace

Zend\Feed\Reader

Code

public function getExtension($name) {
  if (array_key_exists($name . '\\Feed', $this->extensions)) {
    return $this->extensions[$name . '\\Feed'];
  }
  return;
}