public function Theme::postInstallTasks in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Updater/Theme.php \Drupal\Core\Updater\Theme::postInstallTasks()
Returns an array of links to pages that should be visited post operation.
Return value
array Links which provide actions to take after the install is finished.
Overrides Updater::postInstallTasks
File
- core/
lib/ Drupal/ Core/ Updater/ Theme.php, line 91
Class
- Theme
- Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php.
Namespace
Drupal\Core\UpdaterCode
public function postInstallTasks() {
// Since this is being called outside 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'],
],
];
return [
$default_options + [
'#url' => Url::fromRoute('system.themes_page'),
'#title' => t('Install newly added themes'),
],
$default_options + [
'#url' => Url::fromRoute('system.admin'),
'#title' => t('Administration pages'),
],
];
}