This function retrieves saved state information. If the state information has been lost,
it will attempt to restart the request by calling the restart URL which is embedded in the
state information. If there is no restart information available, an exception will be thrown.
public static loadState ( string $id, string $stage, boolean $allowMissing = false ) : array | null | ||
$id | string | State identifier (with embedded restart information). |
$stage | string | The stage the state should have been saved in. |
$allowMissing | boolean | Whether to allow the state to be missing. |
return | array | null | State information, or null if the state is missing and $allowMissing is true. |