You are here

public function Grep::analyze in Drupal 7 to 8/9 Module Upgrader 8

Analyzes a target module and flags any issues found.

Parameters

TargetInterface $target: The target module.

Return value

\Drupal\drupalmoduleupgrader\IssueInterface[]

Overrides AnalyzerInterface::analyze

File

src/Plugin/DMU/Analyzer/Grep.php, line 30

Class

Grep
Plugin annotation @Analyzer( id = "grep", description = @Translation("Searches for and replaces commonly-used code that has changed in Drupal 8."), documentation = { { "url" = "https://www.drupal.org/node/2324935", "title" =…

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer

Code

public function analyze(TargetInterface $target) {

  // It's too odious to try and grep through the entire module for the various
  // targets. So we'll just unconditionally flag the issue.
  return [
    $this
      ->buildIssue($target),
  ];
}