Skip to content
Snippets Groups Projects
Unverified Commit 6a0d497e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3180382 by phenaproxima, dww, tedbow: UpdateManagerUpdate doesn't need...

Issue #3180382 by phenaproxima, dww, tedbow: UpdateManagerUpdate doesn't need to use the renderer service
parent 3a5c1135
No related branches found
No related tags found
No related merge requests found
......@@ -72,13 +72,10 @@ public static function create(ContainerInterface $container) {
public function buildForm(array $form, FormStateInterface $form_state) {
$this->moduleHandler->loadInclude('update', 'inc', 'update.manager');
$last_markup = [
$form['last_check'] = [
'#theme' => 'update_last_check',
'#last' => $this->state->get('update.last_check', 0),
];
$form['last_check'] = [
'#markup' => \Drupal::service('renderer')->render($last_markup),
];
if (!_update_manager_check_backends($form, 'update')) {
return $form;
......
......@@ -110,6 +110,7 @@ protected function standardTests() {
// Verify that the link to the Drupal project appears.
$this->assertRaw(Link::fromTextAndUrl(t('Drupal'), Url::fromUri('http://example.com/project/drupal'))->toString());
$this->assertNoText('No available releases found');
$this->assertSession()->pageTextContains('Last checked:');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment