⇦ Back to Feed classMethod removeContributor
public \Joomla\CMS\Feed\Feed
removeContributor
(\Joomla\CMS\Feed\FeedPerson $contributor)
Method to remove a contributor from the feed object.
Parameters
- \Joomla\CMS\Feed\FeedPerson $contributor The person object to remove.
Returns
Since
Method removeContributor - Source code
public function removeContributor(FeedPerson $contributor)
{
foreach ($this->properties['contributors'] as $k => $c) {
if ($c == $contributor) {
unset($this->properties['contributors'][$k]);
$this->properties['contributors'] = array_values($this->properties['contributors']);
return $this;
}
}
return $this;
}