public function Feed::getImage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::getImage()
Returns the primary image attached to the feed.
Return value
string The URL of the primary image attached to the feed.
Overrides FeedInterface::getImage
File
- core/
modules/ aggregator/ src/ Entity/ Feed.php, line 285
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function getImage() {
return $this
->get('image')->value;
}