You are here

public function Issue::addFix in Drupal 7 to 8/9 Module Upgrader 8

Adds a fix for this issue.

Parameters

string $fixer_id: The plugin ID of the fixer to use.

array $configuration: Optional configuration for the fixer.

Return value

$this

Overrides IssueInterface::addFix

File

src/Issue.php, line 213

Class

Issue

Namespace

Drupal\drupalmoduleupgrader

Code

public function addFix($fixer_id, array $configuration = []) {
  $this->fixes[] = array_merge($configuration, [
    '_plugin_id' => $fixer_id,
  ]);
  $this
    ->setTag('fixable', TRUE);
  return $this;
}