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

Commit

Permalink
Merge pull request #7 from piotrsmykaj/8.x-1.x
Browse files Browse the repository at this point in the history
Fixed delete() method.
  • Loading branch information
claudiu-cristea authored Oct 27, 2021
2 parents 047e162 + 86e26f0 commit fcdfff5
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 fcdfff5

Please sign in to comment.