public function Feed::setImage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::setImage()
Sets the primary image attached to the feed.
Parameters
string $image: An image URL.
Return value
$this The class instance that this method is called on.
Overrides FeedInterface::setImage
File
- core/
modules/ aggregator/ src/ Entity/ Feed.php, line 369
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function setImage($image) {
$this
->set('image', $image);
return $this;
}