You are here

public function Feed::setUrl in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::setUrl()

Sets the url to the feed.

Parameters

string $url: A string containing the url of the feed.

Return value

$this The class instance that this method is called on.

Overrides FeedInterface::setUrl

File

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

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setUrl($url) {
  $this
    ->set('url', $url);
  return $this;
}