Back to ComponentAdapter class

Method removeExtensionFiles

protected void
removeExtensionFiles
()
Removes this extension's files
Returns
  • void
Since
  • 4.0.0
-
  • \RuntimeException

Method removeExtensionFiles - Source code

/**
 * Removes this extension's files
 *
 * @return  void
 *
 * @since   4.0.0
 * @throws  \RuntimeException
 */
protected function removeExtensionFiles()
{
    // Let's remove those language files and media in the JROOT/images/ folder that are associated with the component we are uninstalling
    $this->parent->removeFiles($this->getManifest()->media);
    $this->parent->removeFiles($this->getManifest()->languages);
    $this->parent->removeFiles($this->getManifest()->administration->languages, 1);
}