Commit b541e3c1 authored by dawehner's avatar dawehner Committed by tim.plunkett

move the many to one helper to psr0

parent d6092dd5
This diff is collapsed.
This diff is collapsed.
......@@ -23,7 +23,7 @@
* - invalid input: A string to give to the user for obviously invalid input.
* This is deprecated in favor of argument validators.
*
* @see views_many_to_one_helper()
* @see Drupal\views\ManyTonOneHelper
*
* @ingroup views_argument_handlers
*/
......
......@@ -7,6 +7,7 @@
namespace Drupal\views\Plugin\views\argument;
use Drupal\views\ManyToOneHelper;
use Drupal\Core\Annotation\Plugin;
/**
......@@ -25,7 +26,7 @@ class String extends ArgumentPluginBase {
function init(&$view, &$options) {
parent::init($view, $options);
if (!empty($this->definition['many to one'])) {
$this->helper = new views_many_to_one_helper($this);
$this->helper = new ManyToOneHelper($this);
// Ensure defaults for these, during summaries and stuff:
$this->operator = 'or';
......
......@@ -7,6 +7,7 @@
namespace Drupal\views\Plugin\views\filter;
use Drupal\views\ManyToOneHelper;
use Drupal\Core\Annotation\Plugin;
/**
......@@ -27,7 +28,7 @@
*/
class ManyToOne extends InOperator {
/**
* @var views_many_to_one_helper
* @var Drupal\views\ManyToOneHelper
*
* Stores the Helper object which handles the many_to_one complexity.
*/
......@@ -35,7 +36,7 @@ class ManyToOne extends InOperator {
function init(&$view, &$options) {
parent::init($view, $options);
$this->helper = new views_many_to_one_helper($this);
$this->helper = new ManyToOneHelper($this);
}
function option_definition() {
......@@ -48,7 +49,7 @@ function option_definition() {
$this->helper->option_definition($options);
}
else {
$helper = new views_many_to_one_helper($this);
$helper = new ManyToOneHelper($this);
$helper->option_definition($options);
}
......
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