function BuildTestBase::getWorkspaceDrupalRoot
Same name in other branches
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDrupalRoot()
Gets the path to Drupal root in the workspace directory.
Return value
string The absolute path to the Drupal root directory in the workspace.
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 636
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
public function getWorkspaceDrupalRoot() : string {
$dir = $this->getWorkspaceDirectory();
$drupal_root = $this->getWorkingPathDrupalRoot();
if ($drupal_root !== NULL) {
$dir = $dir . DIRECTORY_SEPARATOR . $drupal_root;
}
return $dir;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.