/** * If the template is deleted, remove the template file */ public function onAfterDelete() { $fs = new Filesystem(); $path = $this->getFilePath(); if (isset($path) && $fs->exists($path)) { $fs->delete($path); } }
/** * If the template is deleted, remove the template file */ public function onAfterDelete() { $fs = new Filesystem(); $path = $this->getFilePath(); if (isset($path) && $fs->exists($path)) { $fs->delete($path); } }