Unverified Commit d3f6886d authored by git's avatar git Committed by Nikita Malyshev
Browse files

Issue #3289955 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 843d6d46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,6 +6,6 @@
        "Drupal"
    ],
    "require": {
        "drupal/core": "^8.7.7 || ^9"
        "drupal/core": "^9 || ^10"
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ final class TaxonomyCustomController implements ContainerInjectionInterface {
   */
  public function build(TermInterface $taxonomy_term) {
    $event = new TermPageBuildEvent($taxonomy_term);
    $this->eventDispatcher->dispatch(TaxonomyCustomControllerEvents::PAGE_BUILD, $event);
    $this->eventDispatcher->dispatch($event, TaxonomyCustomControllerEvents::PAGE_BUILD);

    $build = $event->getBuildArray();
    if (!empty($build)) {
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
namespace Drupal\taxonomy_custom_controller\Event;

use Drupal\taxonomy\TermInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
 * Provides event which fires when prepare term page render array result.
+1 −1
Original line number Diff line number Diff line
name: Taxonomy Custom Controller
type: module
description: Provides ability to dynamically change content of taxonomy controller.
core_version_requirement: ^8.7.7 || ^9
core_version_requirement: ^9 || ^10
dependencies:
  - drupal:taxonomy