Commit 00cf17f9 authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Issue #3289616 by Project Update Bot, claudiu.cristea, atul ghate: Automated...

Issue #3289616 by Project Update Bot, claudiu.cristea, atul ghate: Automated Drupal 10 compatibility fixes
parent 5077dbcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
type: module
name: 'Simple Block + Layout Builder'
description: 'Integrates Simple Block with Layout Builder.'
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
dependencies:
  - drupal:layout_builder
  - simple_block:simple_block
+3 −3
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

namespace Drupal\simple_block_layout_builder\Event\Subscriber;

use Symfony\Component\HttpKernel\Event\ViewEvent;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Ajax\AjaxHelperTrait;
use Drupal\Core\Routing\ResettableStackedRouteMatchInterface;
@@ -10,7 +11,6 @@ use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url;
use Drupal\layout_builder\SectionStorageInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
use Symfony\Component\HttpKernel\KernelEvents;

/**
@@ -69,10 +69,10 @@ class SimpleBlockAddControllerSubscriber implements EventSubscriberInterface {
  /**
   * Alters the build produced by ChooseBlockController::build().
   *
   * @param \Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent $event
   * @param \Symfony\Component\HttpKernel\Event\ViewEvent $event
   *   The kernel view event.
   */
  public function alterBuild(GetResponseForControllerResultEvent $event): void {
  public function alterBuild(ViewEvent $event): void {
    $route_name = $event->getRequest()->attributes->get('_route');
    if ($route_name !== 'layout_builder.choose_block') {
      return;
+1 −1
Original line number Diff line number Diff line
type: module
name: 'Simple Block'
description: 'Title/content custom blocks stored as config entities'
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
dependencies:
  - drupal:block
  - drupal:filter