You are here

public function StateInterface::progress in Feeds 8.3

Reports the progress of a batch.

When $total === $progress, the state of the task tracked by this state is regarded to be complete.

Should handle the following cases gracefully:

  • $total is 0.
  • $progress is larger than $total.
  • $progress approximates $total so that $finished rounds to 1.0.

Parameters

int $total: A number that is the total to be worked off.

int $progress: A number that is the progress made on $total.

1 method overrides StateInterface::progress()
State::progress in src/State.php
Reports the progress of a batch.

File

src/StateInterface.php, line 82

Class

StateInterface
Status of the import or clearing operation of a Feed.

Namespace

Drupal\feeds

Code

public function progress($total, $progress);