public function UnsavedIndexConfiguration::isLocked in Search API 8
Determines whether this configuration was saved by a different user.
Return value
bool TRUE if a user not equal to the current one created this temporary configuration state and editing by the current user should therefore be forbidden.
Overrides UnsavedConfigurationInterface::isLocked
File
- src/
UnsavedIndexConfiguration.php, line 119
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function isLocked() {
if ($this->lock) {
return $this->lock
->getOwnerId() != $this->currentUserId;
}
return FALSE;
}