shouldMoveToRoot() public method

Check whether the whole app should be moved into the document root.
public shouldMoveToRoot ( ) : string
return string
 /**
  * Copy, or symlink, files from the app root to the build directory.
  *
  * @return string
  *   The absolute path to the build directory where files have been copied.
  */
 protected function copyToBuildDir()
 {
     $this->buildInPlace = true;
     $buildDir = $this->buildDir;
     if ($this->app->shouldMoveToRoot()) {
         $buildDir .= '/' . $this->documentRoot;
     }
     if (!empty($this->settings['clone'])) {
         $this->cloneToBuildDir($buildDir);
     } elseif ($this->copy) {
         $this->fsHelper->copyAll($this->appRoot, $buildDir, $this->ignoredFiles, true);
     } else {
         $this->fsHelper->symlink($this->appRoot, $buildDir);
     }
     return $buildDir;
 }