/** * {@inheritdoc} */ public function getRelativeSourceFilePath() { $path = $this->filePath; $sourcePath = $this->source->findSource($this); if ($sourcePath) { $origExt = pathinfo($path, PATHINFO_EXTENSION); $ext = pathinfo($sourcePath, PATHINFO_EXTENSION); $path = str_replace('.' . $origExt, '.' . $ext, $this->filePath); } $result = ''; $result = $this->join($result, $this->context->getPath()); $result = $this->join($result, $this->module); $result = $this->join($result, $path); return $result; }