Feed::getRefreshRate

public Feed::getRefreshRate()

Returns the refresh rate of the feed in seconds.

Return value

int The refresh rate of the feed in seconds.

Overrides FeedInterface::getRefreshRate

File

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

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

1
2
3
public function getRefreshRate() {
  return $this->get('refresh')->value;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.