You are here

public function TargetInterface::open in Drupal 7 to 8/9 Module Upgrader 8

Parses a file into a syntax tree, keeping a reference to it, and returns it.

Parameters

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

Return value

\Pharborist\RootNode|null

1 method overrides TargetInterface::open()
Target::open in src/Target.php
Parses a file into a syntax tree, keeping a reference to it, and returns it.

File

src/TargetInterface.php, line 98

Class

TargetInterface
Represents a Drupal 7 module being run through the DMU.

Namespace

Drupal\drupalmoduleupgrader

Code

public function open($file);