You are here

public function Feed::progressFetching in Feeds 8.3

Reports the progress of the fetching stage.

Return value

float A float between 0 and 1. 1 = StateInterface::BATCH_COMPLETE.

Overrides FeedInterface::progressFetching

File

src/Entity/Feed.php, line 418

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function progressFetching() {
  return $this
    ->getState(StateInterface::FETCH)->progress;
}