You are here

function hook_upgrade_status_result_alter in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8.2 upgrade_status.api.php \hook_upgrade_status_result_alter()

Alter the build array for an upgrade status result group.

Parameters

array $build: A render array with build results, including a 'title', 'description', 'errors', etc. keys.

\Drupal\Core\Extension\Extension $extension: Drupal extension object.

string $group_key: The key for the result group. One of 'rector', 'now', 'uncategorized', 'later' or 'ignore'.

1 invocation of hook_upgrade_status_result_alter()
ScanResultFormatter::formatResult in src/ScanResultFormatter.php
Format results output for an extension.

File

./upgrade_status.api.php, line 50
Hooks defined by Upgrade Status.

Code

function hook_upgrade_status_result_alter(&$build, Extension $extension, $group_key) {
  if ($group_key == 'rector') {
    $build['description']['#markup'] = t('Here is your patch...');
  }
}