Skip to content
Snippets Groups Projects
Commit 427ec64d authored by Tim Plunkett's avatar Tim Plunkett
Browse files

Switch from AnnotatedClassDiscovery to ViewsDiscovery.

parent 99e3cd96
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -9,12 +9,11 @@ ...@@ -9,12 +9,11 @@
use Drupal\Component\Plugin\PluginManagerBase; use Drupal\Component\Plugin\PluginManagerBase;
use Drupal\Component\Plugin\Factory\DefaultFactory; use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery; use Drupal\views\Plugin\Discovery\ViewsDiscovery;
class ArgumentDefaultPluginManager extends PluginManagerBase { class ArgumentDefaultPluginManager extends PluginManagerBase {
public function __construct() { public function __construct() {
$this->discovery = new AnnotatedClassDiscovery('views', 'argument_default'); $this->discovery = new ViewsDiscovery('views', 'argument_default');
$this->factory = new DefaultFactory($this->discovery); $this->factory = new DefaultFactory($this->discovery);
} }
} }
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
use Drupal\Component\Plugin\PluginManagerBase; use Drupal\Component\Plugin\PluginManagerBase;
use Drupal\Component\Plugin\Factory\DefaultFactory; use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\views\Plugin\Discovery\ViewsDiscovery; use Drupal\views\Plugin\Discovery\ViewsDiscovery;
use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery;
class ArgumentValidatorPluginManager extends PluginManagerBase { class ArgumentValidatorPluginManager extends PluginManagerBase {
public function __construct() { public function __construct() {
$this->discovery = new AnnotatedClassDiscovery('views', 'argument_validator'); $this->discovery = new ViewsDiscovery('views', 'argument_validator');
$this->factory = new DefaultFactory($this->discovery); $this->factory = new DefaultFactory($this->discovery);
} }
} }
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
use Drupal\Component\Plugin\PluginManagerBase; use Drupal\Component\Plugin\PluginManagerBase;
use Drupal\Component\Plugin\Factory\DefaultFactory; use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\views\Plugin\Discovery\ViewsDiscovery; use Drupal\views\Plugin\Discovery\ViewsDiscovery;
use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery;
class CachePluginManager extends PluginManagerBase { class CachePluginManager extends PluginManagerBase {
public function __construct() { public function __construct() {
$this->discovery = new AnnotatedClassDiscovery('views', 'cache'); $this->discovery = new ViewsDiscovery('views', 'cache');
$this->factory = new DefaultFactory($this->discovery); $this->factory = new DefaultFactory($this->discovery);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment