Add an argument validator/default plugin

8.0.x
Daniel Wehner 2012-07-26 13:33:24 -05:00 committed by Tim Plunkett
parent 0d940a4f01
commit 1d248ad779
2 changed files with 22 additions and 3 deletions

View File

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

View File

@ -0,0 +1,19 @@
<?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);
}
}