/** {@inheritDoc} */ public function getPath() { $paths = MetaDataFiles::getPaths(); if (!isset($paths[$this->location])) { throw new Exception("Deployed metadata location {$this->location} is not recognized"); } $path = $this->file->getPath(); if ($paths[$this->location]) { $path = array_merge(explode('/', trim($paths[$this->location], '/')), $path); } return $path; }