Skip to content

Commit

Permalink
Initial commit to make Blackbird work with Drupal 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsmithvmlyr committed Mar 16, 2023
1 parent 3e308eb commit df1000b
Show file tree
Hide file tree
Showing 30 changed files with 8 additions and 605 deletions.
15 changes: 4 additions & 11 deletions blackbird.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Blackbird
type: profile
description: 'An opinionated Drupal profile with helpful components to take care of repeated tasks for new websites.'
version: VERSION
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
'base profile': blackbird
dependencies:
- address
Expand All @@ -24,11 +24,10 @@ dependencies:
- block_content
- block_field
- breakpoint
- ckeditor
- ckeditor5
- classy_paragraphs
- color
- config
- config_export_ignore
- config_filter
- config_ignore
- config_split
Expand All @@ -39,13 +38,11 @@ dependencies:
- datetime_range
- dynamic_page_cache
- editor
- editor_file
- entity_reference_revisions
- environment_indicator
- environment_indicator_ui
- field
- field_group
- field_group_settings
- field_ui
- file
- filter
Expand All @@ -59,7 +56,6 @@ dependencies:
- inline_form_errors
- limited_field_widgets
- link
- link_class
- linkit
- login_emailusername
- mailsystem
Expand Down Expand Up @@ -97,10 +93,7 @@ dependencies:
- system
- taxonomy
- telephone
- telephone_formatter
- telephone_validation
- text
- theme_filter
- token
- toolbar
- user
Expand All @@ -109,5 +102,5 @@ dependencies:
- views
- viewsreference
themes:
- bartik
- seven
- claro
- olivero
8 changes: 4 additions & 4 deletions blackbird.install
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use Drupal\user\RoleInterface;
use Drupal\user\UserInterface;
use Drupal\shortcut\Entity\Shortcut;
use Symfony\Component\Filesystem\Filesystem;
use Webmozart\PathUtil\Path;
use Symfony\Component\Filesystem\Path;

/**
* Implements hook_install().
Expand Down Expand Up @@ -140,7 +140,7 @@ function _blackbird_install_tasks_clean_config_split_duplication(&$context) {
$filesystem = new Filesystem();

// Get directory paths.
$path_profile = drupal_get_path('profile', 'blackbird');
$path_profile = Drupal::service('extension.list.profile')->getPath('blackbird');
$path_profile_config_splits = $path_profile . '/config/splits';
$path_sync = Settings::get('config_sync_directory');

Expand Down Expand Up @@ -244,7 +244,7 @@ function _blackbird_install_tasks_clean_updates(&$context) {
*/
function blackbird_install_tasks_config_split() {
// Get directory paths.
$path_profile = drupal_get_path('profile', 'blackbird');
$path_profile = Drupal::service('extension.list.profile')->getPath('blackbird');
$path_profile_config_splits = $path_profile . '/config/splits';
$path_sync = Settings::get('config_sync_directory');

Expand Down Expand Up @@ -294,7 +294,7 @@ function _blackbird_install_tasks_config_split($split_name, &$context) {
}

// Get directory paths.
$path_profile = drupal_get_path('profile', 'blackbird');
$path_profile = Drupal::service('extension.list.profile')->getPath('blackbird');
$path_profile_config_splits = $path_profile . '/config/splits';
$path_sync = Settings::get('config_sync_directory');

Expand Down
24 changes: 0 additions & 24 deletions config/install/block.block.bartik_account_menu.yml

This file was deleted.

22 changes: 0 additions & 22 deletions config/install/block.block.bartik_branding.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.bartik_breadcrumbs.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.bartik_content.yml

This file was deleted.

24 changes: 0 additions & 24 deletions config/install/block.block.bartik_footer.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.bartik_help.yml

This file was deleted.

17 changes: 0 additions & 17 deletions config/install/block.block.bartik_local_actions.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.bartik_local_tasks.yml

This file was deleted.

24 changes: 0 additions & 24 deletions config/install/block.block.bartik_main_menu.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.bartik_messages.yml

This file was deleted.

17 changes: 0 additions & 17 deletions config/install/block.block.bartik_page_title.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.seven_breadcrumbs.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.seven_content.yml

This file was deleted.

19 changes: 0 additions & 19 deletions config/install/block.block.seven_help.yml

This file was deleted.

Loading

0 comments on commit df1000b

Please sign in to comment.