Back to FeedEntry class

Method removeCategory

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

Method removeCategory - Source code

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