AnalyzerBase.php in Drupal 7 to 8/9 Module Upgrader 8
File
src/AnalyzerBase.php
View source
<?php
namespace Drupal\drupalmoduleupgrader;
abstract class AnalyzerBase extends PluginBase implements AnalyzerInterface {
protected function buildIssue(TargetInterface $target) {
$issue = new Issue($target, $this->pluginDefinition['message'], $this->pluginDefinition['summary']);
foreach ($this->pluginDefinition['documentation'] as $doc) {
$issue
->addDocumentation($doc['url'], $doc['title']);
}
foreach ($this->pluginDefinition['tags'] as $group => $tag) {
$issue
->setTag($group, $tag);
}
if (empty($this->pluginDefinition['tags']['error_level'])) {
$issue
->setTag('error_level', 'error');
}
return $issue;
}
}