You are here

public function IssueInterface::addViolation in Drupal 7 to 8/9 Module Upgrader 8

Flags a single violation of this issue in a particular syntax node.

Parameters

\Pharborist\Node $node: The offending syntax tree node.

\Drupal\drupalmoduleupgrader\AnalyzerInterface $detector: The plugin which detected the violation.

Return value

$this

1 method overrides IssueInterface::addViolation()
Issue::addViolation in src/Issue.php
Flags a single violation of this issue in a particular syntax node.

File

src/IssueInterface.php, line 83

Class

IssueInterface

Namespace

Drupal\drupalmoduleupgrader

Code

public function addViolation(Node $node, AnalyzerInterface $detector);