Skip to content

Commit

Permalink
ACMS-4400: Update Acquia Drupal Starter Kit modules to support Drupal…
Browse files Browse the repository at this point in the history
… Core 11.1.0 version.
  • Loading branch information
rajeshreeputra committed Dec 27, 2024
1 parent 8cee154 commit 5393ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/acquia_cms_common/acquia_cms_common.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use Drupal\acquia_cms_common\Facade\WorkflowFacade;
use Drupal\Component\Utility\DeprecationHelper;
use Drupal\Core\Breadcrumb\Breadcrumb;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Hook\Attribute\LegacyHook;
use Drupal\Core\Installer\InstallerKernel;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\editor\Entity\Editor;
Expand Down Expand Up @@ -427,6 +428,7 @@ function acquia_cms_common_preprocess_maintenance_page(array &$variables) {
/**
* Implements hook_module_implements_alter().
*/
#[LegacyHook]
function acquia_cms_common_module_implements_alter(array &$implementations, string $hook): void {
// Prevent installation of site studio package on module install
// during site installation from other modules, this causes issue.
Expand Down
2 changes: 2 additions & 0 deletions modules/acquia_cms_image/acquia_cms_image.install
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

use Drupal\acquia_cms_image\SiteLogo;
use Drupal\Core\Hook\Attribute\LegacyHook;
use Drupal\Core\Installer\InstallerKernel;
use Drupal\image\Entity\ImageStyle;

Expand All @@ -22,6 +23,7 @@ function acquia_cms_image_install($is_syncing) {
/**
* Implements hook_module_implements_alter().
*/
#[LegacyHook]
function acquia_cms_image_module_implements_alter(array &$implementations, string $hook) : void {
if ($hook === 'modules_installed') {
// Unset default_content import during site install,
Expand Down

0 comments on commit 5393ff9

Please sign in to comment.