getBaseUrl()); $url = (new Url('system.db_update'))->setOption('base_url', $base_url); $build['main'] = [ '#type' => 'link', '#title' => $this->t('Run database updates'), '#url' => $url, '#access' => $url->access($this->currentUser()), ]; return $build; } }