You are here

public function FunctionCallArgumentFilter::hasArgument in Drupal 7 to 8/9 Module Upgrader 8

Return value

bool

File

src/Utility/Filter/FunctionCallArgumentFilter.php, line 36

Class

FunctionCallArgumentFilter
Filters for function calls which are passed a particular argument.

Namespace

Drupal\drupalmoduleupgrader\Utility\Filter

Code

public function hasArgument(Node $argument) {
  return $argument instanceof VariableNode && $argument
    ->getName() == $this->variable;
}