From 1e825e8680501820b4356224ac18d9831e05bfd2 Mon Sep 17 00:00:00 2001 From: Michael Sheldon Date: Thu, 24 Feb 2022 16:11:59 -0500 Subject: [PATCH] name trimming --- composer.json | 5 +- gt.info.yml | 65 ------------------- gt_profile.info.yml | 65 +++++++++++++++++++ gt.install => gt_profile.install | 4 +- gt.libraries.yml => gt_profile.libraries.yml | 1 - ...inks.menu.yml => gt_profile.links.menu.yml | 2 +- gt.profile => gt_profile.profile | 2 +- 7 files changed, 71 insertions(+), 73 deletions(-) delete mode 100644 gt.info.yml create mode 100644 gt_profile.info.yml rename gt.install => gt_profile.install (95%) rename gt.libraries.yml => gt_profile.libraries.yml (73%) rename gt.links.menu.yml => gt_profile.links.menu.yml (71%) rename gt.profile => gt_profile.profile (83%) diff --git a/composer.json b/composer.json index c40dba9..d0c97e8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "gtsciences/gt_drupal_profile", + "name": "gtsciences/gt_profile", "description": "GT Sciences Drupal profile, for a more civilized age", "type": "drupal-profile", "license": "GPL-2.0-or-later", @@ -75,7 +75,7 @@ "drupal/views_data_export": "^1.1", "drupal/webform": "^6.2@beta", "drupal/honeypot": "^2.0", - "gtsciences/gt_drupal_sso": "^1.0@dev", + "gtsciences/gt_sso": "^1.0@dev", "gtsciences/gt": "^1.0@dev", "gtsciences/hg_reader": "^1.0@dev" }, @@ -91,7 +91,6 @@ "cweagans/composer-patches": true, "deployer/deployer": true, "drupal/*": true, - "gt/*": true, "gtsciences/*": true, "oomphinc/composer-installers-extender": true, "wikimedia/composer-merge-plugin": true diff --git a/gt.info.yml b/gt.info.yml deleted file mode 100644 index 1e1674a..0000000 --- a/gt.info.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: GT -type: profile -description: "GT Sciences Drupal 9+ Installation Profile" -core_version_requirement: ^9 || ^10 -distribution: - - name: Georgia Tech College of Sciences Profile - -dependencies: - # Core - - drupal:block - - drupal:breakpoint - - drupal:block_content - - drupal:ckeditor5 - - drupal:config - - drupal:contextual - - drupal:datetime - - drupal:editor - - drupal:image - - drupal:file - - drupal:media_library - - drupal:menu_link_content - - drupal:menu_ui - - drupal:node - - drupal:options - - drupal:path - - drupal:search - - drupal:taxonomy - - drupal:toolbar - - drupal:views - -install: - # Core - - drupal:automated_cron - - drupal:dblog - - drupal:editor - - drupal:help - - drupal:history - - drupal:link - - drupal:media - - # Contrib - - drupal:admin_toolbar - - drupal:block_content - - drupal:dynamic_page_cache - - drupal:embed - - drupal:entity_embed - - drupal:field_group - - drupal:field_ui - - drupal:page_cache - - drupal:paragraphs - - drupal:pathauto - - drupal:rdf - - drupal:responsive_image - - drupal:shortcut - - drupal:social_media_links - - drupal:telephone - - drupal:twig_tweak - - drupal:views_ui - - # Custom - - gt_drupal_sso - -themes: - - claro - - gt diff --git a/gt_profile.info.yml b/gt_profile.info.yml new file mode 100644 index 0000000..fe75239 --- /dev/null +++ b/gt_profile.info.yml @@ -0,0 +1,65 @@ +name: GT +type: profile +description: "GT Sciences Drupal 9+ Installation Profile" +core_version_requirement: ^9 || ^10 +distribution: + - name: Georgia Tech College of Sciences Profile + +dependencies: + # Core + - block + - breakpoint + - block_content + - ckeditor5 + - config + - contextual + - datetime + - editor + - image + - file + - media_library + - menu_link_content + - menu_ui + - node + - options + - path + - search + - taxonomy + - toolbar + - views + +install: + # Core + - automated_cron + - dblog + - editor + - help + - history + - link + - media + + # Contrib + - admin_toolbar + - block_content + - dynamic_page_cache + - embed + - entity_embed + - field_group + - field_ui + - page_cache + - paragraphs + - pathauto + - rdf + - responsive_image + - shortcut + - social_media_links + - telephone + - twig_tweak + - views_ui + + # Custom + - gt_sso + +themes: + - claro + - gt diff --git a/gt.install b/gt_profile.install similarity index 95% rename from gt.install rename to gt_profile.install index c1e6f06..2e14103 100644 --- a/gt.install +++ b/gt_profile.install @@ -13,12 +13,12 @@ use Drupal\block\Entity\Block; /** * Implements hook_preprocess_install_page(). */ -function gt_preprocess_install_page(&$variables) { +function gt_profile_preprocess_install_page(&$variables) { $variables['#attached']['library'][] = 'gt/gt-installer'; } -function gt_install() { +function gt_profile_install() { /** * The basics */ diff --git a/gt.libraries.yml b/gt_profile.libraries.yml similarity index 73% rename from gt.libraries.yml rename to gt_profile.libraries.yml index 77b8192..bbc2a2b 100644 --- a/gt.libraries.yml +++ b/gt_profile.libraries.yml @@ -1,5 +1,4 @@ gt-installer: - version: VERSION css: theme: css/gt.css: {} diff --git a/gt.links.menu.yml b/gt_profile.links.menu.yml similarity index 71% rename from gt.links.menu.yml rename to gt_profile.links.menu.yml index af29871..abd51fc 100644 --- a/gt.links.menu.yml +++ b/gt_profile.links.menu.yml @@ -1,4 +1,4 @@ -gt.front_page: +gt_profile.front_page: title: 'Home' route_name: '' menu_name: main diff --git a/gt.profile b/gt_profile.profile similarity index 83% rename from gt.profile rename to gt_profile.profile index 200290f..4b848f5 100644 --- a/gt.profile +++ b/gt_profile.profile @@ -5,7 +5,7 @@ * Allows the profile to alter the site configuration form. */ -function gt_form_install_configure_form_alter(&$form, $form_state) { +function gt_profile_form_install_configure_form_alter(&$form, $form_state) { $form['admin_account']['account']['name']['#default_value'] = 'altotus'; $form['regional_settings']['site_default_country']['#default_value'] = 'US'; $form['regional_settings']['date_default_timezone']['#default_value'] = 'America/New_York';