public function importPlugin($type) { if (!$this->isCli()) { \JLoader::import('joomla.plugin.helper'); \JPluginHelper::importPlugin($type); } }