public function FeaturesManager::setRoot in Features 8.3
Same name and namespace in other branches
- 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::setRoot()
Set the app.root.
Should only be used by tests.
Parameters
string $root: The root.
Overrides FeaturesManagerInterface::setRoot
File
- src/
FeaturesManager.php, line 174
Class
- FeaturesManager
- The FeaturesManager provides helper functions for building packages.
Namespace
Drupal\featuresCode
public function setRoot($root) {
$this->root = $root;
// Clear cache.
$this->featureInfoCache = [];
}