/** * {@inheritdoc} */ public function getPath() { $result = ''; $result = $this->join($result, $this->context->getPath()); $result = $this->join($result, $this->module); $result = $this->join($result, $this->filePath); return $result; }
/** * {@inheritdoc} */ public function getRelativeSourceFilePath() { $path = $this->filePath; if (strpos($this->source->findRelativeSourceFilePath($this), 'less')) { $path = str_replace('.css', '.less', $this->filePath); } $result = ''; $result = $this->join($result, $this->context->getPath()); $result = $this->join($result, $this->module); $result = $this->join($result, $path); return $result; }
/** * {@inheritdoc} */ public function getRelativeSourceFilePath() { $path = $this->filePath; $sourcePath = $this->source->findRelativeSourceFilePath($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; }