private function buildPathFromSource(string $path) :string {
    //return $this->buildContext->getPath('build') . '/' .
    return str_replace('.', '/', str_replace($this->context . ".", '', $this->viewNameFromSource($path))) .
      $this->buildExtension;
  }
private function buildPathFromSource(string $path) :string {
    //return $this->buildContext->getPath('build') . '/' .
    return str_replace('.', '/', str_replace($this->context . ".", '', $this->viewNameFromSource($path))) .
      $this->buildExtension;
  }
private function buildPathFromSource ( string $ path ) : string { //return $this->buildContext->getPath('build') . '/' . return str_replace ( '.' , '/' , str_replace ( $ this -> context . "." , '' , $ this -> viewNameFromSource ( $ path ) ) ) . $ this -> buildExtension ; }
start with the build path
strip context from view name including first .
replace remaining dots in view name with slashes
add build extension
@param  string $path Source file path
@return string       destination path
start with the build path strip context from view name including first . replace remaining dots in view name with slashes add build extension