/** {@inheritDoc} */ public function getPath() { $names = MetaDataFiles::getNames(); //In a deployed module, we can check for a studio module with file name overrides. $sm = StudioModuleFactory::getStudioModule($this->module); foreach ($sm->sources as $file => $def) { if (!empty($def['view'])) { $names[$def['view']] = substr($file, 0, strlen($file) - 4); } } if (!isset($names[$this->view])) { sugar_die("View {$this->view} is not recognized"); } return array('modules', $this->module, $names[$this->view]); }