Commit 2842bc14 authored by dawehner's avatar dawehner Committed by tim.plunkett

some random bug fixes

parent 81f57691
......@@ -40,6 +40,9 @@
*
* @ingroup views_argument_handlers
*/
/**
*/
class ArgumentPluginBase extends Handler {
var $validator = NULL;
......
......@@ -8,6 +8,7 @@
namespace Drupal\views\Plugin\views\argument;
use Drupal\Core\Annotation\Plugin;
use Drupal\views\ManyToOneHelper;
/**
* An argument handler for use in fields that have a many to one relationship
......@@ -31,7 +32,7 @@
class ManyToOne extends ArgumentPluginBase {
function init(&$view, &$options) {
parent::init($view, $options);
$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';
......@@ -52,7 +53,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);
}
......
......@@ -17,7 +17,6 @@
* @Plugin(
* plugin_id = "taxonomy_term",
* base_table = "taxonomy_term_data",
* created_column = "created",
* title = @Translation("Taxonomy terms"),
* path_field = {
* "id" = "tid",
......
......@@ -21,7 +21,7 @@
* plugin_id = "aggregator_iid"
* )
*/
class views_handler_argument_aggregator_iid extends Numeric {
class Iid extends Numeric {
/**
* Override the behavior of title(). Get the title of the category.
*/
......
......@@ -12,6 +12,7 @@
/**
* @Plugin(
* plugin_id = "node_created_week"
* )
*/
class CreatedWeek extends Date {
/**
......
......@@ -12,6 +12,7 @@
/**
* @Plugin(
* plugin_id = "node_created_year"
* )
*/
class CreatedYear extends Date {
/**
......
......@@ -12,6 +12,7 @@
/**
* @Plugin(
* plugin_id = "node_created_year_month"
* )
*/
class CreatedYearMonth extends Date {
/**
......
......@@ -7,7 +7,7 @@
namespace Views\node\Plugin\views\argument;
use Views\user\Plugin\views\argument\UserUid;
use Views\user\Plugin\views\argument\Uid;
use Drupal\Core\Annotation\Plugin;
/**
......@@ -20,7 +20,7 @@
* plugin_id = "node_uid_revision"
* )
*/
class UidRevision extends UserUid {
class UidRevision extends Uid {
function query($group_by = FALSE) {
$this->ensure_my_table();
$placeholder = $this->placeholder();
......
......@@ -5,7 +5,7 @@
* Definition of views_handler_argument_search.
*/
namespace Views\node\Plugin\views\argument;
namespace Views\search\Plugin\views\argument;
use Drupal\views\Join;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
......
......@@ -18,7 +18,7 @@
/**
* @Plugin(
* plugin_id = "user_roles_rid"
* plugin_id = "users_roles_rid"
* )
*/
class RolesRid extends ManyToOne {
......
......@@ -160,7 +160,7 @@ function taxonomy_views_data() {
'filter' => array(
'title' => t('Term'),
'help' => t('Taxonomy term chosen from autocomplete or select widget.'),
'plugin_id' => 'taxonomy_tid',
'plugin_id' => 'taxonomy_index_tid',
'hierarchy table' => 'taxonomy_term_hierarchy',
'numeric' => TRUE,
),
......
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