Back to Feed class

Method removeCategory

public \Joomla\CMS\Feed\Feed
removeCategory
(mixed $name)
Method to remove a category from the feed object.
Parameters
  • string $name The name of the category to remove.
Returns
  • \Joomla\CMS\Feed\Feed
Since
  • 3.1.4
Class: Feed
Project: Joomla

Method removeCategory - Source code

/**
 * Method to remove a category from the feed object.
 *
 * @param   string  $name  The name of the category to remove.
 *
 * @return  Feed
 *
 * @since   3.1.4
 */
public function removeCategory($name)
{
    unset($this->properties['categories'][$name]);
    return $this;
}