Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -120,15 +120,31 @@ if ($is_allowed) {
|
|||
'#messages' => $results['messages'],
|
||||
);
|
||||
|
||||
$links = array();
|
||||
if (is_array($results['tasks'])) {
|
||||
$links += $results['tasks'];
|
||||
$links = $results['tasks'];
|
||||
}
|
||||
else {
|
||||
$links = array_merge($links, array(
|
||||
\Drupal::l(t('Administration pages'), new Url('system.admin')),
|
||||
\Drupal::l(t('Front page'), new Url('<front>')),
|
||||
));
|
||||
// Since this is being called outsite of the primary front controller,
|
||||
// the base_url needs to be set explicitly to ensure that links are
|
||||
// relative to the site root.
|
||||
// @todo Simplify with https://www.drupal.org/node/2548095
|
||||
$default_options = [
|
||||
'#type' => 'link',
|
||||
'#options' => [
|
||||
'absolute' => TRUE,
|
||||
'base_url' => $GLOBALS['base_url'],
|
||||
],
|
||||
];
|
||||
$links = [
|
||||
$default_options + [
|
||||
'#url' => Url::fromRoute('system.admin'),
|
||||
'#title' => t('Administration pages'),
|
||||
],
|
||||
$default_options + [
|
||||
'#url' => Url::fromRoute('<front>'),
|
||||
'#title' => t('Front page'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
$content['next_steps'] = array(
|
||||
|
@ -139,7 +155,13 @@ if ($is_allowed) {
|
|||
}
|
||||
// If a batch is running, let it run.
|
||||
elseif ($request->query->has('batch')) {
|
||||
$content = ['#markup' => _batch_page($request)];
|
||||
$content = _batch_page($request);
|
||||
// If _batch_page() returns a response object (likely a JsonResponse for
|
||||
// JavaScript-based batch processing), send it immediately.
|
||||
if ($content instanceof Response) {
|
||||
$content->send();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (empty($_SESSION['authorize_operation']) || empty($_SESSION['authorize_filetransfer_info'])) {
|
||||
|
|
Reference in a new issue