public function GridStack::delete in GridStack 8.2
Deletes an entity permanently.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
Overrides EntityBase::delete
File
- src/
Entity/ GridStack.php, line 401
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function delete() {
if (!$this
->isNew()) {
if ($uri = $this
->getIconFileUri()) {
$this
->getFileSystem()
->delete($uri);
}
}
parent::delete();
}