some random bug fixes
parent
81f576913e
commit
2842bc148a
|
@ -40,6 +40,9 @@ use Drupal\views\Plugin\views\Handler;
|
|||
*
|
||||
* @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 @@ use Drupal\Core\Annotation\Plugin;
|
|||
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 @@ class ManyToOne extends ArgumentPluginBase {
|
|||
$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 @@ use Drupal\Core\Annotation\Translation;
|
|||
* @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 @@ use Drupal\Core\Annotation\Plugin;
|
|||
* 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 @@ use Drupal\views\Plugin\views\argument\Date;
|
|||
/**
|
||||
* @Plugin(
|
||||
* plugin_id = "node_created_week"
|
||||
* )
|
||||
*/
|
||||
class CreatedWeek extends Date {
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,7 @@ use Drupal\views\Plugin\views\argument\Date;
|
|||
/**
|
||||
* @Plugin(
|
||||
* plugin_id = "node_created_year"
|
||||
* )
|
||||
*/
|
||||
class CreatedYear extends Date {
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,7 @@ use Drupal\views\Plugin\views\argument\Date;
|
|||
/**
|
||||
* @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 @@ use Drupal\Core\Annotation\Plugin;
|
|||
* 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 @@ use Drupal\views\Plugin\views\argument\ManyToOne;
|
|||
|
||||
/**
|
||||
* @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,
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue