public function TempStoreTrait::isLocked in Rules 8.3
See also
\Drupal\rules\Ui\RulesUiHandlerInterface::isLocked()
2 calls to TempStoreTrait::isLocked()
File
- src/
Ui/ TempStoreTrait.php, line 182
Class
- TempStoreTrait
- Provides methods for modified rules components in temporary storage.
Namespace
Drupal\rules\UiCode
public function isLocked() {
// If there is an object in the temporary storage from another user then
// this component is locked.
if ($this
->getTempStore()
->get($this
->getTempStoreItemId()) && !$this
->getTempStore()
->getIfOwner($this
->getTempStoreItemId())) {
return TRUE;
}
return FALSE;
}