$text =
$this->
t("This update will be skipped due to an error in the module's code."
);
} $build['start'
][$module_update_key]['#items'
][$data['number'
]] .= '<div class="warning">' .
$text . '</div>';
} // Move the module containing this update to the top of the list.
$build['start'
] =
[$module_update_key =>
$build['start'
][$module_update_key]] +
$build['start'
];
} } // Warn the user if any updates were incompatible.
if ($incompatible_updates_exist) { $this->
messenger()->
addWarning($this->
t('Some of the pending updates cannot be applied because their dependencies were not met.'
));
} if (empty($count)) { $this->
messenger()->
addStatus($this->
t('No pending updates.'
));
unset($build);
$build['links'
] =
[ '#theme' => 'links',
'#links' =>
$this->
helpfulLinks($request),
];
// No updates to run, so caches won't get flushed later. Clear them now.