You are here

public function FeedInterface::getState in Feeds 8.3

Returns a state object for a given stage.

Lazily instantiates new states.

Parameters

string $stage: One of StateInterface::FETCH, StateInterface::PARSE, StateInterface::PROCESS or StateInterface::CLEAR.

Return value

\Drupal\feeds\StateInterface The State object for the given stage.

1 method overrides FeedInterface::getState()
Feed::getState in src/Entity/Feed.php
Returns a state object for a given stage.

File

src/FeedInterface.php, line 250

Class

FeedInterface
Provides an interface defining a feeds_feed entity.

Namespace

Drupal\feeds

Code

public function getState($stage);