From 0ce583b17fec196d3b328821492b6d3561c84499 Mon Sep 17 00:00:00 2001 From: catch Date: Tue, 21 Feb 2023 12:00:53 +0000 Subject: [PATCH] Issue #2634022 by martin107, dpi: ViewsPluginInterface::create() inherits from nothing, breaking PHPStan-strict --- .../views/src/Plugin/views/ViewsPluginInterface.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/modules/views/src/Plugin/views/ViewsPluginInterface.php b/core/modules/views/src/Plugin/views/ViewsPluginInterface.php index 4aceb2415af..cb193f1f512 100644 --- a/core/modules/views/src/Plugin/views/ViewsPluginInterface.php +++ b/core/modules/views/src/Plugin/views/ViewsPluginInterface.php @@ -5,14 +5,14 @@ namespace Drupal\views\Plugin\views; use Drupal\Component\Plugin\DerivativeInspectionInterface; use Drupal\Component\Plugin\PluginInspectionInterface; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides an interface for all views plugins. */ -interface ViewsPluginInterface extends PluginInspectionInterface, DerivativeInspectionInterface { +interface ViewsPluginInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ContainerFactoryPluginInterface { /** * Returns the plugin provider. @@ -68,11 +68,6 @@ interface ViewsPluginInterface extends PluginInspectionInterface, DerivativeInsp */ public static function preRenderAddFieldsetMarkup(array $form); - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition); - /** * Initialize the plugin. *