You are here

public function Feed::setUrl in Drupal 9

Same name and namespace in other branches
  1. 8 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 322

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

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