Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/8.x-1.x' into 8.x-1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Nov 25, 2021
2 parents 4af083c + fcdfff5 commit 58ad3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/SparqlGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function setEntityTypeIds(?array $entity_type_ids): SparqlGraphInterface
* {@inheritdoc}
*/
public function delete() {
if (!$this->isUninstalling() && ($this->id() === static::DEFAULT)) {
if (!$this->isSyncing() && !$this->isUninstalling() && ($this->id() === static::DEFAULT)) {
throw new \RuntimeException("The '" . static::DEFAULT . "' graph cannot be deleted.");
}
parent::delete();
Expand Down

0 comments on commit 58ad3e2

Please sign in to comment.