function FixturesBase::projectRoot
Gets the path to Scaffold component.
Used to inject the component into composer.json files.
Return value
string Path to the root of this project.
2 methods override FixturesBase::projectRoot()
- Fixtures::projectRoot in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php - Gets the path to Scaffold component.
- Fixtures::projectRoot in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Unpack/ Fixtures.php - Gets the path to Scaffold component.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php, line 95
Class
- FixturesBase
- Base class for fixtures to test composer plugins.
Namespace
Drupal\Tests\Composer\PluginCode
public abstract function projectRoot() : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.