public function Feed::getImage in Zircon Profile 8
Same name in this branch
- 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::getImage()
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php \Zend\Feed\Reader\Extension\Atom\Feed::getImage()
Same name and namespace in other branches
- 8.0 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 292 - Contains \Drupal\aggregator\Entity\Feed.
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function getImage() {
return $this
->get('image')->value;
}