public function FunctionCallArgumentFilter::__invoke in Drupal 7 to 8/9 Module Upgrader 8
Return value
bool
File
- src/
Utility/ Filter/ FunctionCallArgumentFilter.php, line 26
Class
- FunctionCallArgumentFilter
- Filters for function calls which are passed a particular argument.
Namespace
Drupal\drupalmoduleupgrader\Utility\FilterCode
public function __invoke(Node $node) {
if ($node instanceof FunctionCallNode) {
return (bool) $node
->getArgumentList()
->children([
$this,
'hasArgument',
])
->count();
}
return FALSE;
}