Skip to content
Snippets Groups Projects
Commit 1d248ad7 authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

Add an argument validator/default plugin

parent 0d940a4f
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
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/** /**
* @file * @file
* Definition of Drupal\views\Plugins\Type\ArgumentPluginManager. * Definition of Drupal\views\Plugins\Type\ArgumentDefaultPluginManager.
*/ */
namespace Drupal\views\Plugins\Type; namespace Drupal\views\Plugins\Type;
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
use Drupal\Component\Plugin\Factory\DefaultFactory; use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\views\Plugins\Discovery\ViewsDiscovery; use Drupal\views\Plugins\Discovery\ViewsDiscovery;
class ArgumentPluginManager extends PluginManagerBase { class ArgumentDefaultPluginManager extends PluginManagerBase {
public function __construct() { public function __construct() {
$this->discovery = new ViewsDiscovery('views_plugins', 'argument'); $this->discovery = new ViewsDiscovery('views_plugins', 'argument default');
$this->factory = new DefaultFactory($this); $this->factory = new DefaultFactory($this);
} }
} }
<?php
/**
* @file
* Definition of Drupal\views\Plugins\Type\ArgumentValidatorPluginManager.
*/
namespace Drupal\views\Plugins\Type;
use Drupal\Component\Plugin\PluginManagerBase;
use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\views\Plugins\Discovery\ViewsDiscovery;
class ArgumentValidatorPluginManager extends PluginManagerBase {
public function __construct() {
$this->discovery = new ViewsDiscovery('views_plugins', 'argument validator');
$this->factory = new DefaultFactory($this);
}
}
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