protected function findDrupalDocroot()
    {
        /** @var EngineType $engine */
        $engine = $this->engineInstance();

        /** @var DrupalProjectType $project */
        $project = $this->projectInstance();

        if ($engine instanceof DockerEngineType && !$this->localhost) {
            return "/var/www/html/{$project->getInstallRoot(true)}";
        }

        return $project->getInstallPath();
    }
protected function findDrupalDocroot()
    {
        /** @var EngineType $engine */
        $engine = $this->engineInstance();

        /** @var DrupalProjectType $project */
        $project = $this->projectInstance();

        if ($engine instanceof DockerEngineType && !$this->localhost) {
            return "/var/www/html/{$project->getInstallRoot(true)}";
        }

        return $project->getInstallPath();
    }
protected function findDrupalDocroot ( ) { /** @var EngineType $engine */ $ engine = $ this -> engineInstance ( ) ; /** @var DrupalProjectType $project */ $ project = $ this -> projectInstance ( ) ; if ( $ engine instanceof DockerEngineType && ! $ this -> localhost ) { return "/var/www/html/{$project->getInstallRoot(true)}" ; } return $ project -> getInstallPath ( ) ; }
Find Drupal docroot.

@return string
Find Drupal docroot .