You are here

public function AbstractFeed::addCategories in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::addCategories()

Set an array of feed categories

Parameters

array $categories:

Return value

AbstractFeed

File

vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php, line 513

Class

AbstractFeed

Namespace

Zend\Feed\Writer

Code

public function addCategories(array $categories) {
  foreach ($categories as $category) {
    $this
      ->addCategory($category);
  }
  return $this;
}