Example #1
0
 /**
  * {@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;
 }
Example #2
0
 /**
  * {@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;
 }