You are here

public function FeaturesManager::setRoot in Features 8.3

Same name and namespace in other branches
  1. 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\features

Code

public function setRoot($root) {
  $this->root = $root;

  // Clear cache.
  $this->featureInfoCache = [];
}