public Theme::postInstallTasks()
Returns an array of links to pages that should be visited post operation.
array Links which provide actions to take after the install is finished.
Overrides Updater::postInstallTasks
public function postInstallTasks() { // 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'], ], ]; 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'), ], ]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Updater!Theme.php/function/Theme::postInstallTasks/8.1.x