initPropertiesFromPluginCodeObject($pluginCodeObj); $result = parent::load($filePath); $this->loadCommonProperties(); return $result; } public function getPluginName() { return Lang::get($this->pluginName); } protected function loadCommonProperties() { if (!array_key_exists('plugin', $this->originalFileData)) { return; } $pluginData = $this->originalFileData['plugin']; if (array_key_exists('name', $pluginData)) { $this->pluginName = $pluginData['name']; } } protected function initPropertiesFromPluginCodeObject($pluginCodeObj) { } protected static function pluginSettingsFileExists($pluginCodeObj) { $filePath = File::symbolizePath($pluginCodeObj->toPluginFilePath()); if (File::isFile($filePath)) { return $filePath; } return false; } }