lightning_landing_page.install in Lightning Layout 8
Same filename and directory in other branches
Contains installation and update routines for Lightning Landing Page.
File
modules/lightning_landing_page/lightning_landing_page.installView source
<?php
/**
* @file
* Contains installation and update routines for Lightning Landing Page.
*/
/**
* Implements hook_install().
*/
function lightning_landing_page_install() {
$module_handler = Drupal::moduleHandler();
$modules = [];
if ($module_handler
->moduleExists('lightning_search')) {
array_push($modules, 'lightning_search');
}
if ($module_handler
->moduleExists('lightning_workflow')) {
array_push($modules, 'lightning_workflow');
}
if ($module_handler
->moduleExists('menu_ui')) {
array_push($modules, 'menu_ui');
}
if ($modules) {
lightning_landing_page_modules_installed($modules);
}
}
Functions
Name | Description |
---|---|
lightning_landing_page_install | Implements hook_install(). |