Commit a102d627 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Sascha Grossenbacher
Browse files

Issue #3289099 by Berdir, Project Update Bot: Automated Drupal 10 compatibility fixes

parent 8035c0da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,6 +13,6 @@
    }
  },
  "require" : {
    "drupal/core": "^8.7.7 || ^9"
    "drupal/core": "^9.1 || ^10"
  }
}
+1 −1
Original line number Diff line number Diff line
name: Plugin
description: Provides tools that extend Drupal's plugin system.
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.1 || ^10
type: module
configure: plugin.plugin_type.list
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class EventBasedDefaultPluginResolver implements DefaultPluginResolverInterface
   */
  public function createDefaultPluginInstance(PluginTypeInterface $plugin_type) {
    $event = new ResolveDefaultPlugin($plugin_type);
    $this->eventDispatcher->dispatch(PluginEvents::RESOLVE_DEFAULT_PLUGIN, $event);
    $this->eventDispatcher->dispatch($event, PluginEvents::RESOLVE_DEFAULT_PLUGIN);

    return $event->getDefaultPluginInstance();
  }
+1 −1
Original line number Diff line number Diff line
@@ -2,9 +2,9 @@

namespace Drupal\plugin\Event;

use Drupal\Component\EventDispatcher\Event;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\plugin\PluginType\PluginTypeInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Provides an event that is dispatched when the a default plugin instance is
+2 −2
Original line number Diff line number Diff line
@@ -15,14 +15,14 @@ class PluginDefinitionValidator {
  /**
   * Validates a plugin class.
   *
   * @param string $class
   * @param string|null $class
   *   A fully qualified class name.
   *
   * @throws \InvalidArgumentException
   *   Thrown when the class is invalid.
   */
  public static function validateClass($class) {
    if (!class_exists($class)) {
    if ($class === NULL || !class_exists($class)) {
      throw new \InvalidArgumentException(sprintf('Class %s does not exist.', $class));
    }
  }
Loading