Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions illinois_framework_core.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
*/
function illinois_framework_core_install() {
illinois_framework_core_set_image_processor();
illinois_framework_core_configure_toolbar();
}

/**
* Enables toolbar and configures Gin toolbar settings.
*/
function illinois_framework_core_configure_toolbar() {
// Ensure core toolbar module is enabled.
if (!\Drupal::moduleHandler()->moduleExists('toolbar')) {
\Drupal::service('module_installer')->install(['toolbar']);
}

// Update Gin configuration.
$config = \Drupal::configFactory()->getEditable('gin.settings');

// Enable classic toolbar.
$config->set('classic_toolbar', 'vertical');

$config->save(TRUE);
}

/**
Expand Down Expand Up @@ -294,3 +313,9 @@ function illinois_framework_core_update_9900() {
}
}
}
/**
* Switch Gin to use the classic (core) toolbar instead of experimental.
*/
function illinois_framework_core_update_9951() {
illinois_framework_core_configure_toolbar();
}