protected function Issue::addDetector in Drupal 7 to 8/9 Module Upgrader 8
Stores a reference to an issue detector, if we don't already know about it, for use by getDetectors().
Parameters
AnalyzerInterface $detector:
2 calls to Issue::addDetector()
- Issue::addAffectedFile in src/
Issue.php - Marks a particular file as being affected by this issue.
- Issue::addViolation in src/
Issue.php - Flags a single violation of this issue in a particular syntax node.
File
- src/
Issue.php, line 225
Class
Namespace
Drupal\drupalmoduleupgraderCode
protected function addDetector(AnalyzerInterface $detector) {
if ($detector instanceof PluginInspectionInterface) {
$this->detectors[] = $detector
->getPluginId();
}
}