Feed::setImage

public Feed::setImage($image)

Sets the primary image attached to the feed.

Parameters

string $image: An image URL.

Return value

\Drupal\aggregator\FeedInterface The class instance that this method is called on.

Overrides FeedInterface::setImage

File

core/modules/aggregator/src/Entity/Feed.php, line 360

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setImage($image) {
  $this->set('image', $image);
  return $this;
}
doc_Drupal
2016-10-29 09:09:57
Comments
Leave a Comment

Please login to continue.