Loading src/Plugin/views/style/ChartsPluginStyleChart.php +2 −14 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Render\Element; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Template\TwigEnvironment; use Drupal\views\Plugin\views\field\EntityField; use Drupal\views\Plugin\views\style\StylePluginBase; use Drupal\views\ResultRow; Loading Loading @@ -82,13 +81,6 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory */ protected RouteMatchInterface $routeMatch; /** * The Twig environment. * * @var \Drupal\Core\Template\TwigEnvironment */ protected TwigEnvironment $twig; /** * Constructs a ChartsPluginStyleChart object. * Loading @@ -106,16 +98,13 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory * The chart type manager. * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * The current route match. * @param \Drupal\Core\Template\TwigEnvironment $twig * The Twig environment. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, ChartManager $chart_manager, TypeManager $chart_type_manager, RouteMatchInterface $route_match, TwigEnvironment $twig) { public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, ChartManager $chart_manager, TypeManager $chart_type_manager, RouteMatchInterface $route_match) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->configFactory = $config_factory; $this->chartManager = $chart_manager; $this->chartTypeManager = $chart_type_manager; $this->routeMatch = $route_match; $this->twig = $twig; } /** Loading @@ -129,8 +118,7 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory $container->get('config.factory'), $container->get('plugin.manager.charts'), $container->get('plugin.manager.charts_type'), $container->get('current_route_match'), $container->get('twig') $container->get('current_route_match') ); } Loading Loading
src/Plugin/views/style/ChartsPluginStyleChart.php +2 −14 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Render\Element; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Template\TwigEnvironment; use Drupal\views\Plugin\views\field\EntityField; use Drupal\views\Plugin\views\style\StylePluginBase; use Drupal\views\ResultRow; Loading Loading @@ -82,13 +81,6 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory */ protected RouteMatchInterface $routeMatch; /** * The Twig environment. * * @var \Drupal\Core\Template\TwigEnvironment */ protected TwigEnvironment $twig; /** * Constructs a ChartsPluginStyleChart object. * Loading @@ -106,16 +98,13 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory * The chart type manager. * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * The current route match. * @param \Drupal\Core\Template\TwigEnvironment $twig * The Twig environment. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, ChartManager $chart_manager, TypeManager $chart_type_manager, RouteMatchInterface $route_match, TwigEnvironment $twig) { public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, ChartManager $chart_manager, TypeManager $chart_type_manager, RouteMatchInterface $route_match) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->configFactory = $config_factory; $this->chartManager = $chart_manager; $this->chartTypeManager = $chart_type_manager; $this->routeMatch = $route_match; $this->twig = $twig; } /** Loading @@ -129,8 +118,7 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory $container->get('config.factory'), $container->get('plugin.manager.charts'), $container->get('plugin.manager.charts_type'), $container->get('current_route_match'), $container->get('twig') $container->get('current_route_match') ); } Loading