Browse Source

Change to islandora_welcome

pull/856/head
Don Richards 3 years ago committed by GitHub
parent
commit
e1ead2d338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      islandora.install

13
islandora.install

@ -176,14 +176,7 @@ function update_jsonld_included_namespaces() {
}
/**
* Switches homepage to a twig based version.
*/
function islandora_update_8007() {
reset_homepage();
}
/**
* Used by install and update_8007 to reset homepage to use twig.
* Used to set homepage to use twig.
*/
function reset_homepage() {
$frontPage = \Drupal::configFactory()->get('system.site')->get('page.front');
@ -193,7 +186,7 @@ function reset_homepage() {
copy( $original_template . '/templates/welcome.html.twig', $theme_templates . '/welcome.html.twig');
copy( $original_template . '/templates/welcome_base.html.twig', $theme_templates . '/welcome_base.html.twig');
}
if ($frontPage != '/welcome') {
\Drupal::configFactory()->getEditable('system.site')->set('page.front', '/welcome')->save();
if ($frontPage != '/islandora_welcome') {
\Drupal::configFactory()->getEditable('system.site')->set('page.front', '/islandora_welcome')->save();
}
}

Loading…
Cancel
Save