Commit 34c1da08 authored by alexpott's avatar alexpott
Browse files

Issue #2383667 by Gábor Hojtsy: pathField and pathFieldsSupplemental is not used in Views wizards

parent b0c6ff80
......@@ -30,22 +30,6 @@ class Comment extends WizardPluginBase {
*/
protected $createdColumn = 'created';
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'cid',
'table' => 'comment',
'field' => 'cid',
'exclude' => TRUE,
'link_to_comment' => FALSE,
'alter' => array(
'alter_text' => TRUE,
'text' => 'comment/[cid]#comment-[cid]'
),
'plugin_id' => 'comment',
);
/**
* Set default values for the filters.
*/
......
......@@ -25,18 +25,6 @@ class File extends WizardPluginBase {
*/
protected $createdColumn = 'created';
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'uri',
'table' => 'file_managed',
'field' => 'uri',
'exclude' => TRUE,
'file_download_path' => TRUE,
'plugin_id' => 'file_uri',
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
......
......@@ -30,22 +30,6 @@ class Node extends WizardPluginBase {
*/
protected $createdColumn = 'node_field_data-created';
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'nid',
'table' => 'node',
'field' => 'nid',
'exclude' => TRUE,
'link_to_node' => FALSE,
'alter' => array(
'alter_text' => TRUE,
'text' => 'node/[nid]'
),
'plugin_id' => 'node',
);
/**
* Set default values for the filters.
*/
......
......@@ -29,35 +29,6 @@ class NodeRevision extends WizardPluginBase {
*/
protected $createdColumn = 'changed';
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'vid',
'table' => 'node_revision',
'field' => 'vid',
'exclude' => TRUE,
'alter' => array(
'alter_text' => TRUE,
'text' => 'node/[nid]/revisions/[vid]/view'
),
'plugin_id' => 'node_revision',
);
/**
* Set the additional information for the pathField property.
*/
protected $pathFieldsSupplemental = array(
array(
'id' => 'nid',
'table' => 'node',
'field' => 'nid',
'exclude' => TRUE,
'link_to_node' => FALSE,
'plugin_id' => 'node',
)
);
/**
* Set default values for the filters.
*/
......
......@@ -20,21 +20,6 @@
*/
class TaxonomyTerm extends WizardPluginBase {
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'tid',
'table' => 'taxonomy_term_data',
'field' => 'tid',
'exclude' => TRUE,
'alter' => array(
'alter_text' => TRUE,
'text' => 'taxonomy/term/[tid]'
),
'plugin_id' => 'taxonomy',
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
......
......@@ -29,22 +29,6 @@ class Users extends WizardPluginBase {
*/
protected $createdColumn = 'created';
/**
* Set default values for the path field options.
*/
protected $pathField = array(
'id' => 'uid',
'table' => 'users',
'field' => 'uid',
'exclude' => TRUE,
'link_to_user' => FALSE,
'alter' => array(
'alter_text' => TRUE,
'text' => 'user/[uid]'
),
'plugin_id' => 'user',
);
/**
* Set default values for the filters.
*/
......
......@@ -79,20 +79,6 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
*/
protected $createdColumn;
/**
* A views item configuration array used for a jump-menu field.
*
* @var array
*/
protected $pathField = array();
/**
* Additional fields required to generate the pathField.
*
* @var array
*/
protected $pathFieldsSupplemental = array();
/**
* Views items configuration arrays for filters added by the wizard.
*
......@@ -155,30 +141,6 @@ public function getCreatedColumn() {
return $this->createdColumn;
}
/**
* Gets the pathField property.
*
* @return array
* The pathField array.
*
* @todo Rename this to be something about jump menus, and/or resolve this
* dependency.
*/
public function getPathField() {
return $this->pathField;
}
/**
* Gets the pathFieldsSupplemental property.
*
* @return array()
*
* @todo Rename this to be something about jump menus, and/or remove this.
*/
public function getPathFieldsSupplemental() {
return $this->pathFieldsSupplemental;
}
/**
* Gets the filters property.
*
......
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