public function Feed::isLocked in Feeds 8.3
Checks whether a feed is locked.
Return value
bool Returns true if the feed is locked, and false if not.
Overrides FeedInterface::isLocked
File
- src/
Entity/ Feed.php, line 502
Class
- Feed
- Defines the feed entity class.
Namespace
Drupal\feeds\EntityCode
public function isLocked() {
return !\Drupal::service('lock.persistent')
->lockMayBeAvailable("feeds_feed_{$this->id()}");
}