public function FunctionCalls::addFile in Drupal 7 to 8/9 Module Upgrader 8
Overrides IndexerInterface::addFile
File
- src/
Plugin/ DMU/ Indexer/ FunctionCalls.php, line 61
Class
- FunctionCalls
- Plugin annotation @Indexer( id = "function_call", description = @Translation("Indexes all function calls in a target module."), exclude = { "t" } )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\IndexerCode
public function addFile($path) {
$doc = Parser::parseFile($path);
$doc
->find(Filter::isInstanceOf('\\Pharborist\\Functions\\FunctionCallNode'))
->each([
$this,
'add',
]);
}