You are here

public function Feed::unlock in Feeds 8.3

Unlocks a feed.

Overrides FeedInterface::unlock

1 call to Feed::unlock()
Feed::finishImport in src/Entity/Feed.php
Cleans up after an import.

File

src/Entity/Feed.php, line 494

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function unlock() {
  \Drupal::service('lock.persistent')
    ->release("feeds_feed_{$this->id()}");
  Cache::invalidateTags([
    'feeds_feed_locked',
  ]);
}