Commit 910b48f0 authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge remote-tracking branch 'origin/1.0.x' into feature/ISTWCMS-5509-ebremner-ohana

parents 06c0637d 4d29446a
timeout: 86400
max_timeout: 172800
padding: 60
no_individual_logout_threshold: true
role_logout: false
role_logout_max: true
redirect_url: /user/login
no_dialog: false
message: 'You are about to be logged out because you have been inactive for over 24 hours. Do you want to remain logged in?'
inactivity_message: 'You have been logged out due to inactivity.'
inactivity_message_type: status
enforce_admin: true
jstimer_format: '%hours%:%mins%:%secs%'
jstimer_js_load_option: false
use_alt_logout_method: false
use_watchdog: false
dialog_title: 'Automatic logout pending'
disable_buttons: false
yes_button: ''
no_button: ''
whitelisted_ip_addresses: ''
langcode: en
status: true
dependencies: { }
name: Default
machine_name: default
name: Default
description: ''
assignments:
alter:
enabled: true
weight: 0
core: true
uuid: true
user_permissions: false
enabled: true
weight: 0
base:
enabled: true
weight: -2
types:
config:
comment_type: comment_type
node_type: node_type
content:
user: user
enabled: true
weight: -2
core:
enabled: true
weight: 5
types:
config:
date_format: date_format
......@@ -31,12 +33,12 @@ assignments:
responsive_image_style: responsive_image_style
user_role: user_role
entity_view_mode: entity_view_mode
enabled: true
weight: 5
dependency:
enabled: true
weight: 15
exclude:
enabled: true
weight: -5
types:
config:
features_bundle: features_bundle
......@@ -46,8 +48,6 @@ assignments:
profile: true
namespace: true
namespace_any: false
enabled: true
weight: -5
existing:
enabled: true
weight: 12
......@@ -58,14 +58,16 @@ assignments:
enabled: true
weight: 0
optional:
types:
config: { }
enabled: true
weight: 0
types:
config: { }
packages:
enabled: true
weight: -20
profile:
enabled: true
weight: 10
curated: true
standard:
files: true
......@@ -78,9 +80,9 @@ assignments:
migration: migration
shortcut_set: shortcut_set
tour: tour
enabled: true
weight: 10
site:
enabled: true
weight: 7
types:
config:
action: action
......@@ -91,7 +93,5 @@ assignments:
taxonomy_vocabulary: taxonomy_vocabulary
editor: editor
filter_format: filter_format
enabled: true
weight: 7
profile_name: ''
is_profile: false
......@@ -4,6 +4,9 @@ dependencies: { }
id: wcms3
label: WCMS3
password_reset: 0
send_reset_email: false
send_pending_email:
- 0
policy_constraints:
-
id: password_policy_character_constraint
......
......@@ -10,7 +10,6 @@ dependencies:
- node.type.uw_ct_news_item
- node.type.uw_ct_opportunity
- node.type.uw_ct_profile
- node.type.uw_ct_project
- node.type.uw_ct_service
- node.type.uw_ct_sidebar
- node.type.uw_ct_site_footer
......@@ -47,20 +46,6 @@ type_settings:
weight: 0
published: false
default_revision: true
entity_types:
node:
- uw_ct_blog
- uw_ct_catalog_item
- uw_ct_contact
- uw_ct_event
- uw_ct_expand_collapse_group
- uw_ct_news_item
- uw_ct_opportunity
- uw_ct_profile
- uw_ct_service
- uw_ct_sidebar
- uw_ct_site_footer
- uw_ct_web_page
transitions:
archived:
label: Archive
......@@ -104,4 +89,18 @@ type_settings:
- uw_wf_unpublished
to: draft
weight: 4
entity_types:
node:
- uw_ct_blog
- uw_ct_catalog_item
- uw_ct_contact
- uw_ct_event
- uw_ct_expand_collapse_group
- uw_ct_news_item
- uw_ct_opportunity
- uw_ct_profile
- uw_ct_service
- uw_ct_sidebar
- uw_ct_site_footer
- uw_ct_web_page
default_moderation_state: draft
......@@ -9,6 +9,7 @@ dependencies:
- 'drupal:allowed_formats'
- 'drupal:autocomplete_deluxe'
- 'drupal:automated_cron'
- 'drupal:autologout'
- 'drupal:better_exposed_filters'
- 'drupal:block'
- 'drupal:block_content'
......@@ -141,6 +142,7 @@ dependencies:
- 'drupal:views_taxonomy_term_name_into_id'
- 'drupal:workbench_access'
- 'drupal:workflows'
- 'fillpdf:fillpdf'
- 'layout_builder_lock:layout_builder_lock'
- 'override_node_options:override_node_options'
- 'password_policy:password_policy'
......@@ -149,13 +151,14 @@ dependencies:
- 'password_policy:password_policy_length'
- 'password_policy:password_policy_username'
- 'quick_node_clone:quick_node_clone'
- 'uw_auth_site:uw_auth_site'
- 'uw_cfg_common:uw_cfg_common'
- 'uw_ckeditor_plugins:uw_ckeditor_plugins'
- 'uw_ct_blog:uw_ct_blog'
- 'uw_ct_catalog:uw_ct_catalog'
- 'uw_ct_contact:uw_ct_contact'
- 'uw_ct_expand_collapse_group:uw_ct_expand_collapse_group'
- 'uw_ct_event:uw_ct_event'
- 'uw_ct_expand_collapse_group:uw_ct_expand_collapse_group'
- 'uw_ct_news_item:uw_ct_news_item'
- 'uw_ct_opportunities:uw_ct_opportunities'
- 'uw_ct_profile:uw_ct_profile'
......
......@@ -58,10 +58,14 @@ function uw_sites_all_install() {
])->save();
}
// Scheduler: enables "Hide seconds" option on time settings.
$scheduler_config = \Drupal::service('config.factory')->getEditable('scheduler.settings');
if ($scheduler_config) {
$scheduler_config->set('hide_seconds', TRUE)->save();
// Scheduler: enables "Hide seconds" option on time settings.
$scheduler_config->set('hide_seconds', TRUE);
// Disables log entry for lightweight cron run.
$scheduler_config->set('log', FALSE);
// Save changes.
$scheduler_config->save();
}
}
......@@ -722,3 +726,161 @@ function uw_sites_all_update_9113(&$sandbox) {
];
\Drupal::service('module_installer')->install($modules);
}
/**
* Enable FillPDF module.
*/
function uw_sites_all_update_9114(array &$sandbox): void {
$modules = [
'fillpdf',
];
\Drupal::service('module_installer')->install($modules);
}
/**
* Install views ical if not already installed.
*
* This is required because some sites did not get views_ical enabled
* on the last release.
*/
function uw_sites_all_update_9115(&$sandbox) {
// If views_ical is not enabled, enable it.
if (!\Drupal::service('module_handler')->moduleExists('views_ical')) {
$modules = [
'views_ical',
];
\Drupal::service('module_installer')->install($modules);
}
}
/**
* Set permissions for expand/collapse group content type.
*/
function uw_sites_all_update_9116(&$sandbox) {
// List of permissions needed to be applied to roles.
$permissions = [
'create uw_ct_expand_collapse_group content',
'edit own uw_ct_expand_collapse_group content',
'edit any uw_ct_expand_collapse_group content',
'configure editable uw_ct_expand_collapse_group node layout overrides',
'revert uw_ct_expand_collapse_group revisions',
'view uw_ct_expand_collapse_group revisions',
'enter uw_ct_expand_collapse_group revision log entry',
'override uw_ct_expand_collapse_group published option',
'override uw_ct_expand_collapse_group revision option',
'override uw_ct_expand_collapse_group sticky option',
];
$only_site_manager_permissions = [
'delete any uw_ct_expand_collapse_group content',
'delete own uw_ct_expand_collapse_group content',
];
// Roles that require updated permissions.
$role_ids = [
'uw_role_site_manager',
'uw_role_content_editor',
'uw_role_content_author',
];
$roles = Role::loadMultiple($role_ids);
// Grant all all roles.
foreach ($permissions as $permission) {
$roles['uw_role_site_manager']->grantPermission($permission);
$roles['uw_role_content_editor']->grantPermission($permission);
$roles['uw_role_content_author']->grantPermission($permission);
}
foreach ($only_site_manager_permissions as $only_site_manager_permission) {
$roles['uw_role_site_manager']->grantPermission($only_site_manager_permission);
}
// Save role with new permissions.
$roles['uw_role_site_manager']->save();
$roles['uw_role_content_editor']->save();
$roles['uw_role_content_author']->save();
}
/**
* Set permissions for expand/collapse group content type cloning.
*/
function uw_sites_all_update_9117(&$sandbox) {
// Roles that require updated permissions.
$role_ids = [
'uw_role_site_manager',
'uw_role_content_editor',
'uw_role_content_author',
];
$roles = Role::loadMultiple($role_ids);
$roles['uw_role_site_manager']->grantPermission('clone uw_ct_expand_collapse_group content');
$roles['uw_role_content_editor']->grantPermission('clone uw_ct_expand_collapse_group content');
$roles['uw_role_content_author']->grantPermission('clone uw_ct_expand_collapse_group content');
// Save role with new permissions.
$roles['uw_role_site_manager']->save();
$roles['uw_role_content_editor']->save();
$roles['uw_role_content_author']->save();
}
/**
* Disabled log entry for scheduler lightweight cron.
*/
function uw_sites_all_update_9118(array &$sandbox): void {
// Get Scheduler configuration.
$scheduler_config = \Drupal::service('config.factory')->getEditable('scheduler.settings');
if ($scheduler_config) {
// Disables lightweight cron log entry.
$scheduler_config->set('log', FALSE)->save();
}
}
/**
* Uninstall the migration modules if enabled.
*/
function uw_sites_all_update_9119(&$sandbox) {
// Modules to uninstall.
$modules = [
'uw_migrate',
'webform_migrate',
'webform_node',
];
// Step through each of the modules, ensure that they
// are enabled, and if enabled, uninstall.
foreach ($modules as $module) {
// If the module is enabled, uninstall it.
if (\Drupal::service('module_handler')->moduleExists($module)) {
// Uninstall the module.
\Drupal::service('module_installer')->uninstall([$module]);
}
}
}
/**
* Install Autologout.
*/
function uw_sites_all_update_9120(&$sandbox) {
$modules = [
'autologout',
];
\Drupal::service('module_installer')->install($modules);
}
/**
* Install uw_auth_site.
*/
function uw_sites_all_update_9121(&$sandbox) {
$modules = [
'uw_auth_site',
];
\Drupal::service('module_installer')->install($modules);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment