Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Plugin / DMU / Analyzer / Grep.php
1 <?php
2
3 namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer;
4
5 use Drupal\drupalmoduleupgrader\AnalyzerBase;
6 use Drupal\drupalmoduleupgrader\TargetInterface;
7
8 /**
9  * @Analyzer(
10  *  id = "grep",
11  *  description = @Translation("Searches for and replaces commonly-used code that has changed in Drupal 8."),
12  *  documentation = {
13  *    {
14  *      "url" = "https://www.drupal.org/node/2324935",
15  *      "title" = @Translation("The global theme variables have been replaced by an ActiveTheme object")
16  *    }
17  *  },
18  *  tags = {
19  *    "category" = { "misc" },
20  *    "error_level" = "warning"
21  *  },
22  *  message = @Translation("Many common functions, shared variables, and constants have been renamed.")
23  * )
24  */
25 class Grep extends AnalyzerBase {
26
27   /**
28    * {@inheritdoc}
29    */
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)];
34   }
35
36 }