You are here

public function FeedInterface::setState in Feeds 8.3

Sets a state object for a given stage.

Parameters

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

\Drupal\feeds\StateInterface|null $state: A state object or null to unset the state for the given stage.

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

File

src/FeedInterface.php, line 261

Class

FeedInterface
Provides an interface defining a feeds_feed entity.

Namespace

Drupal\feeds

Code

public function setState($stage, StateInterface $state = NULL);