public function ProjectCollector::getNextStepInfo in Upgrade Status 8.3
Return list of possible next steps and their labels and descriptions.
Return value
array Associative array keys by next step identifier. Values are arrays where the first item is a label an the second is a description.
File
- src/
ProjectCollector.php, line 479
Class
- ProjectCollector
- Collects projects and their associated metadata collated for Upgrade Status.
Namespace
Drupal\upgrade_statusCode
public function getNextStepInfo() {
return [
ProjectCollector::NEXT_REMOVE => [
$this
->t('Remove'),
$this
->t('The likely best action is to remove projects that are uninstalled. Why invest in updating them to be compatible if you are not using them?'),
ProjectCollector::SUMMARY_ACT,
],
ProjectCollector::NEXT_UPDATE => [
$this
->t('Update'),
$this
->t('There is an update available. Even if that is not fully compatible with the next major Drupal core, it may be more compatible than what you have, so best to start with updating first.'),
ProjectCollector::SUMMARY_ACT,
],
ProjectCollector::NEXT_SCAN => [
$this
->t('Scan'),
$this
->t('Status of this project cannot be determined without scanning the source code here. Use this form to run a scan on these.'),
ProjectCollector::SUMMARY_ANALYZE,
],
ProjectCollector::NEXT_COLLABORATE => [
$this
->t('Collaborate with maintainers'),
$this
->t('There may be Drupal.org issues by contributors or even <a href=":drupal-bot">the Project Update Bot</a>. Work with the maintainer to get them committed, provide feedback if they worked.', [
':drupal-bot' => 'https://www.drupal.org/u/project-update-bot',
]),
ProjectCollector::SUMMARY_ACT,
],
ProjectCollector::NEXT_RECTOR => [
$this
->t('Fix with rector'),
$this
->t('Some or all problems found can be fixed automatically with <a href=":drupal-rector">drupal-rector</a>. Make the machine do the work.', [
':drupal-rector' => 'https://www.drupal.org/project/rector',
]),
ProjectCollector::SUMMARY_ACT,
],
ProjectCollector::NEXT_MANUAL => [
$this
->t('Fix manually'),
$this
->t('It looks like there is no automated fixes for either problems found. Check the report for pointers on how to fix.'),
ProjectCollector::SUMMARY_ACT,
],
ProjectCollector::NEXT_RELAX => [
$this
->t('Compatible with next major Drupal core version'),
$this
->t('Well done. Congrats! Let\'s get everything else here!'),
ProjectCollector::SUMMARY_RELAX,
],
];
}