3 namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer;
5 use Drupal\drupalmoduleupgrader\AnalyzerBase;
6 use Drupal\drupalmoduleupgrader\TargetInterface;
11 * description = @Translation("Searches for and replaces commonly-used code that has changed in Drupal 8."),
14 * "url" = "https://www.drupal.org/node/2324935",
15 * "title" = @Translation("The global theme variables have been replaced by an ActiveTheme object")
19 * "category" = { "misc" },
20 * "error_level" = "warning"
22 * message = @Translation("Many common functions, shared variables, and constants have been renamed.")
25 class Grep extends AnalyzerBase {
30 public function analyze(TargetInterface $target) {
31 // It's too odious to try and grep through the entire module for the various
32 // targets. So we'll just unconditionally flag the issue.
33 return [$this->buildIssue($target)];