public function EntityProcessorBase::isLocked in Feeds 8.3
Returns whether or not this plugin is locked.
Return value
bool Returns true if the plugin is locked, false if not.
Overrides LockableInterface::isLocked
1 call to EntityProcessorBase::isLocked()
- EntityProcessorBase::buildAdvancedForm in src/
Feeds/ Processor/ EntityProcessorBase.php
File
- src/
Feeds/ Processor/ EntityProcessorBase.php, line 988
Class
- EntityProcessorBase
- Defines a base entity processor.
Namespace
Drupal\feeds\Feeds\ProcessorCode
public function isLocked() {
if ($this->isLocked === NULL) {
// Look for feeds.
$this->isLocked = (bool) $this->entityTypeManager
->getStorage('feeds_feed')
->getQuery()
->condition('type', $this->feedType
->id())
->range(0, 1)
->execute();
}
return $this->isLocked;
}