You are here

public function Target::create in Drupal 7 to 8/9 Module Upgrader 8

Creates a new, empty document.

Parameters

string $file: The path of the file to create, relative to the CWD.

Return value

\Pharborist\RootNode

Overrides TargetInterface::create

File

src/Target.php, line 242

Class

Target
Default implementation of TargetInterface.

Namespace

Drupal\drupalmoduleupgrader

Code

public function create($file, $ns = NULL) {
  $this->documents[$file] = RootNode::create($ns);
  return $this->documents[$file];
}