You are here

function thunder_demo_install in Thunder 8.2

Same name and namespace in other branches
  1. 8.5 modules/thunder_demo/thunder_demo.install \thunder_demo_install()
  2. 8.3 modules/thunder_demo/thunder_demo.install \thunder_demo_install()
  3. 8.4 modules/thunder_demo/thunder_demo.install \thunder_demo_install()

Install thunder demo content.

File

modules/thunder_demo/thunder_demo.install, line 11
Contains.

Code

function thunder_demo_install() {

  // Set default pages.
  \Drupal::configFactory()
    ->getEditable('system.site')
    ->set('page.403', '/node/3')
    ->set('page.404', '/node/4')
    ->save(TRUE);
}