Skip to content

Commit

Permalink
EWPP-1278: Remove language switcher builder callback, introduced in 2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Jul 26, 2021
1 parent fb17554 commit 7867112
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 114 deletions.
16 changes: 0 additions & 16 deletions modules/oe_theme_helper/oe_theme_helper.module
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\image\Plugin\Field\FieldType\ImageItem;
use Drupal\media\MediaInterface;
use Drupal\oe_theme\ValueObject\ImageValueObject;
use Drupal\oe_theme_helper\LanguageSwitcherBuilderCallback;
use Drupal\Core\Block\BlockPluginInterface;

/**
* Implements hook_page_attachments().
Expand Down Expand Up @@ -309,17 +307,3 @@ function oe_theme_helper_form_entity_view_display_edit_form_alter(&$form, FormSt
}
}
}

/**
* Implements hook_block_view_BASE_BLOCK_ID_alter().
*/
function oe_theme_helper_block_view_oe_theme_helper_page_header_alter(array &$build, BlockPluginInterface $block) {
// Add pre-render callback to build and inject the content language switcher
// within the page header block.
if (\Drupal::service('module_handler')->moduleExists('oe_multilingual')) {
$build['#pre_render'][] = [
LanguageSwitcherBuilderCallback::class,
'preRender',
];
}
}
98 changes: 0 additions & 98 deletions modules/oe_theme_helper/src/LanguageSwitcherBuilderCallback.php

This file was deleted.

0 comments on commit 7867112

Please sign in to comment.