You are here

public function Feed::saveStates in Feeds 8.3

Saves all state objects on the key/value collection of the feed.

Overrides FeedInterface::saveStates

File

src/Entity/Feed.php, line 411

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function saveStates() {
  \Drupal::keyValue('feeds_feed.' . $this
    ->id())
    ->setMultiple($this->states);
}