Commit 1d248ad7 authored by dawehner's avatar dawehner Committed by tim.plunkett

Add an argument validator/default plugin

parent 0d940a4f
...@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment