Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
304
Merge Requests
304
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
797e863f
Commit
797e863f
authored
Jul 29, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert a lot of modules to annotations
parent
a4235cbc
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
345 additions
and
102 deletions
+345
-102
lib/Drupal/views/Plugin/views/wizard/TaxonomyTerm.php
lib/Drupal/views/Plugin/views/wizard/TaxonomyTerm.php
+0
-1
lib/Views/taxonomy/Plugin/views/argument/IndexTid.php
lib/Views/taxonomy/Plugin/views/argument/IndexTid.php
+12
-1
lib/Views/taxonomy/Plugin/views/argument/IndexTidDepth.php
lib/Views/taxonomy/Plugin/views/argument/IndexTidDepth.php
+12
-1
lib/Views/taxonomy/Plugin/views/argument/IndexTidDepthModifier.php
.../taxonomy/Plugin/views/argument/IndexTidDepthModifier.php
+13
-2
lib/Views/taxonomy/Plugin/views/argument/Taxonomy.php
lib/Views/taxonomy/Plugin/views/argument/Taxonomy.php
+12
-1
lib/Views/taxonomy/Plugin/views/argument/VocabularyMachineName.php
.../taxonomy/Plugin/views/argument/VocabularyMachineName.php
+10
-1
lib/Views/taxonomy/Plugin/views/argument/VocabularyVid.php
lib/Views/taxonomy/Plugin/views/argument/VocabularyVid.php
+10
-1
lib/Views/taxonomy/Plugin/views/argument_default/Tid.php
lib/Views/taxonomy/Plugin/views/argument_default/Tid.php
+12
-1
lib/Views/taxonomy/Plugin/views/argument_validate/Term.php
lib/Views/taxonomy/Plugin/views/argument_validate/Term.php
+13
-1
lib/Views/taxonomy/Plugin/views/field/LinkEdit.php
lib/Views/taxonomy/Plugin/views/field/LinkEdit.php
+12
-1
lib/Views/taxonomy/Plugin/views/field/Taxonomy.php
lib/Views/taxonomy/Plugin/views/field/Taxonomy.php
+13
-1
lib/Views/taxonomy/Plugin/views/field/TaxonomyIndexTid.php
lib/Views/taxonomy/Plugin/views/field/TaxonomyIndexTid.php
+12
-1
lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
+12
-1
lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
...ws/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
+12
-1
lib/Views/taxonomy/Plugin/views/filter/VocabularyMachineName.php
...ws/taxonomy/Plugin/views/filter/VocabularyMachineName.php
+12
-1
lib/Views/taxonomy/Plugin/views/filter/VocabularyVid.php
lib/Views/taxonomy/Plugin/views/filter/VocabularyVid.php
+12
-1
lib/Views/taxonomy/Plugin/views/relationship/NodeTermData.php
...Views/taxonomy/Plugin/views/relationship/NodeTermData.php
+10
-1
lib/Views/translation/Plugin/views/argument/NodeTnid.php
lib/Views/translation/Plugin/views/argument/NodeTnid.php
+12
-1
lib/Views/translation/Plugin/views/field/NodeLinkTranslate.php
...iews/translation/Plugin/views/field/NodeLinkTranslate.php
+12
-1
lib/Views/translation/Plugin/views/field/NodeTranslationLink.php
...ws/translation/Plugin/views/field/NodeTranslationLink.php
+12
-1
lib/Views/translation/Plugin/views/filter/NodeTnid.php
lib/Views/translation/Plugin/views/filter/NodeTnid.php
+12
-1
lib/Views/translation/Plugin/views/filter/NodeTnidChild.php
lib/Views/translation/Plugin/views/filter/NodeTnidChild.php
+12
-1
lib/Views/translation/Plugin/views/relationship/Translation.php
...ews/translation/Plugin/views/relationship/Translation.php
+10
-1
lib/Views/user/Plugin/views/argument/RolesRid.php
lib/Views/user/Plugin/views/argument/RolesRid.php
+10
-1
lib/Views/user/Plugin/views/argument/Uid.php
lib/Views/user/Plugin/views/argument/Uid.php
+10
-1
lib/Views/user/Plugin/views/argument_default/CurrentUser.php
lib/Views/user/Plugin/views/argument_default/CurrentUser.php
+10
-1
lib/Views/user/Plugin/views/argument_default/User.php
lib/Views/user/Plugin/views/argument_default/User.php
+10
-1
lib/Views/user/Plugin/views/argument_validator/User.php
lib/Views/user/Plugin/views/argument_validator/User.php
+10
-1
lib/Views/user/Plugin/views/row/View.php
lib/Views/user/Plugin/views/row/View.php
+12
-1
modules/taxonomy.views.inc
modules/taxonomy.views.inc
+18
-42
modules/translation.views.inc
modules/translation.views.inc
+6
-6
modules/user.views.inc
modules/user.views.inc
+0
-24
No files found.
lib/Drupal/views/Plugin/views/wizard/TaxonomyTerm.php
View file @
797e863f
...
...
@@ -19,7 +19,6 @@
* base_table = "taxonomy_term_data",
* created_column = "created",
* title = @Translation("Taxonomy terms"),
* filters = {""},
* path_field = {
* "id" = "tid",
* "table" = "taxonomy_term_data",
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_term_node_tid.inc
→
lib/Views/taxonomy/Plugin/views/argument/
IndexTid.php
View file @
797e863f
...
...
@@ -10,7 +10,18 @@
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_term_node_tid
extends
views_handler_argument_many_to_one
{
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\argument\ManyToOne
;
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid"
* )
*/
class
IndexTid
extends
ManyToOne
{
function
option_definition
()
{
$options
=
parent
::
option_definition
();
$options
[
'set_breadcrumb'
]
=
array
(
'default'
=>
FALSE
,
'bool'
=>
TRUE
);
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_term_node_tid_depth.inc
→
lib/Views/taxonomy/Plugin/views/argument/
IndexTidDepth.php
View file @
797e863f
...
...
@@ -5,6 +5,11 @@
* Definition of views_handler_argument_term_node_tid_depth.
*/
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\views\Plugin\views\argument\ArgumentPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler for taxonomy terms with depth.
*
...
...
@@ -13,7 +18,13 @@
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_term_node_tid_depth
extends
views_handler_argument
{
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid_depth"
* )
*/
class
IndexTidDepth
extends
ArgumentPluginBase
{
function
option_definition
()
{
$options
=
parent
::
option_definition
();
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_term_node_tid_depth_modifier.inc
→
lib/Views/taxonomy/Plugin/views/argument/
IndexTidDepthModifier.php
View file @
797e863f
...
...
@@ -2,9 +2,14 @@
/**
* @file
* Definition of views_handler_argument_term_node_tid_depth_modif.
* Definition of views_handler_argument_term_node_tid_depth_modif
ier
.
*/
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\views\Plugin\views\argument\ArgumentPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler for to modify depth for a previous term.
*
...
...
@@ -13,7 +18,13 @@
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_term_node_tid_depth_modifier
extends
views_handler_argument
{
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid_depth_modifier"
* )
*/
class
IndexTidDepthModifier
extends
ArgumentPluginBase
{
function
options_form
(
&
$form
,
&
$form_state
)
{
}
function
query
(
$group_by
=
FALSE
)
{
}
function
pre_query
()
{
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_taxonomy.inc
→
lib/Views/taxonomy/Plugin/views/argument/
Taxonomy.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_argument_taxonomy.
*/
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\views\Plugin\views\argument\Numeric
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler for basic taxonomy tid.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_taxonomy
extends
views_handler_argument_numeric
{
/**
* @plugin(
* plugin_id = "taxonomy"
* )
*/
class
Taxonomy
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the node.
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_vocabulary_machine_name.inc
→
lib/Views/taxonomy/Plugin/views/argument/
VocabularyMachineName.php
View file @
797e863f
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_argument_vocabulary_machine_name.
*/
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\views\Plugin\views\argument\String
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept a vocabulary machine name.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_vocabulary_machine_name
extends
String
{
/**
* @Plugin(
* plugin_id = "vocabulary_machine_name"
* )
*/
class
VocabularyMachineName
extends
String
{
/**
* Override the behavior of title(). Get the name of the vocabulary..
*/
...
...
lib/Views/taxonomy/Plugin/views/argument/
views_handler_argument_vocabulary_vid.inc
→
lib/Views/taxonomy/Plugin/views/argument/
VocabularyVid.php
View file @
797e863f
...
...
@@ -5,6 +5,9 @@
* Definition of views_handler_argument_vocabulary_vid.
*/
namespace
Views\taxonomy\Plugin\views\argument
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\argument\Numeric
;
/**
...
...
@@ -12,7 +15,13 @@
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_vocabulary_vid
extends
Numeric
{
/**
* @Plugin(
* plugin_id = "vocabulary_vid"
* )
*/
class
VocabularyVid
extends
Numeric
{
/**
* Override the behavior of title(). Get the name of the vocabulary.
*/
...
...
lib/Views/taxonomy/Plugin/views/argument_default/
views_plugin_argument_default_taxonomy_tid.inc
→
lib/Views/taxonomy/Plugin/views/argument_default/
Tid.php
View file @
797e863f
...
...
@@ -5,10 +5,21 @@
* Definition of views_plugin_argument_default_taxonomy_tid.
*/
namespace
Views\taxonomy\Plugin\views\argument_default
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\Core\Annotation\Translation
;
use
Drupal\views\Plugin\views\argument_default
\
ArgumentDefaultPluginBase
;
/**
* Taxonomy tid default argument.
*
* @Plugin(
* plugin_id = "taxonomy_tid",
* title = @Translation("Taxonomy term ID from URL")
* )
*/
class
views_plugin_argument_default_taxonomy_tid
extends
views_plugin_argument_default
{
class
Tid
extends
ArgumentDefaultPluginBase
{
function
init
(
&
$view
,
&
$argument
,
$options
)
{
parent
::
init
(
$view
,
$argument
,
$options
);
...
...
lib/Views/taxonomy/Plugin/views/argument_validate/
views_plugin_argument_validate_taxonomy_term.inc
→
lib/Views/taxonomy/Plugin/views/argument_validate/
Term.php
View file @
797e863f
...
...
@@ -5,10 +5,22 @@
* Contains the 'taxonomy term' argument validator plugin.
*/
namespace
Views\taxonomy\Plugin\views\argument_validator
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\Core\Annotation\Translation
;
use
Drupal\views\Plugin\views\argument_validator
\
ArgumentValidatorPluginBase
;
/**
* Validate whether an argument is an acceptable node.
*
* @Plugin(
* plugin_id = "taxonomy_term",
* title = @Translation("Taxonomy term")
*/
class
views_plugin_argument_validate_taxonomy_term
extends
views_plugin_argument_validat
e
{
class
Term
extends
ArgumentValidatorPluginBas
e
{
function
init
(
&
$view
,
&
$argument
,
$options
)
{
parent
::
init
(
$view
,
$argument
,
$options
);
...
...
lib/Views/taxonomy/Plugin/views/field/
views_handler_field_term_link_edit.inc
→
lib/Views/taxonomy/Plugin/views/field/
LinkEdit.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_field_term_link_edit.
*/
namespace
Views\taxonomy\Plugin\views\field
;
use
Drupal\views\Plugin\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to present a term edit link.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_term_link_edit
extends
views_handler_field
{
/**
* @Plugin(
* plugin_id = "term_link_edit"
* )
*/
class
LinkEdit
extends
FieldPluginBase
{
function
construct
()
{
parent
::
construct
();
$this
->
additional_fields
[
'tid'
]
=
'tid'
;
...
...
lib/Views/taxonomy/Plugin/views/field/
views_handler_field_taxonomy.inc
→
lib/Views/taxonomy/Plugin/views/field/
Taxonomy.php
View file @
797e863f
...
...
@@ -5,13 +5,25 @@
* Definition of views_handler_field_taxonomy.
*/
namespace
Views\taxonomy\Plugin\views\field
;
use
Drupal\views\Plugin\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to provide simple renderer that allows linking to a taxonomy
* term.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_taxonomy
extends
views_handler_field
{
/**
* @Plugin(
* plugin_id = "taxonomy"
* )
*/
class
Taxonomy
extends
FieldPluginBase
{
/**
* Constructor to provide additional field to add.
*
...
...
lib/Views/taxonomy/Plugin/views/field/
views_handler_field_term_node_tid.inc
→
lib/Views/taxonomy/Plugin/views/field/
TaxonomyIndexTid.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_field_term_node_tid.
*/
namespace
Views\taxonomy\Plugin\views\field
;
use
Drupal\views\Plugin\views\field\PrerenderList
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to display all taxonomy terms of a node.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_term_node_tid
extends
views_handler_field_prerender_list
{
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid"
* )
*/
class
TaxonomyIndexTid
extends
PrerenderList
{
function
init
(
&
$view
,
&
$options
)
{
parent
::
init
(
$view
,
$options
);
// @todo: Wouldn't it be possible to use $this->base_table and no if here?
...
...
lib/Views/taxonomy/Plugin/views/filter/
views_handler_filter_term_node_tid.inc
→
lib/Views/taxonomy/Plugin/views/filter/
TaxonomyIndexTid.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_filter_term_node_tid.
*/
namespace
Views\taxonomy\Plugin\views\filter
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\filter\ManyToOne
;
/**
* Filter by term id.
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_term_node_tid
extends
views_handler_filter_many_to_one
{
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid"
* )
*/
class
TaxonomyIndexTid
extends
ManyToOne
{
// Stores the exposed input for this filter.
var
$validated_exposed_input
=
NULL
;
...
...
lib/Views/taxonomy/Plugin/views/filter/
views_handler_filter_term_node_tid_depth.inc
→
lib/Views/taxonomy/Plugin/views/filter/
TaxonomyIndexTidDepth.php
View file @
797e863f
...
...
@@ -5,6 +5,11 @@
* Definition of views_handler_filter_term_node_tid_depth.
*/
namespace
Views\taxonomy\Plugin\views\filter
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Filter handler for taxonomy terms with depth.
*
...
...
@@ -13,7 +18,13 @@
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_term_node_tid_depth
extends
views_handler_filter_term_node_tid
{
/**
* @Plugin(
* plugin_id = "taxonomy_index_tid_depth"
* )
*/
class
TaxonomyIndexTidDepth
extends
TaxonomyIndexTid
{
function
operator_options
(
$which
=
'title'
)
{
return
array
(
'or'
=>
t
(
'Is one of'
),
...
...
lib/Views/taxonomy/Plugin/views/filter/
views_handler_filter_vocabulary_machine_name.inc
→
lib/Views/taxonomy/Plugin/views/filter/
VocabularyMachineName.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_filter_vocabulary_machine_name.
*/
namespace
Views\taxonomy\Plugin\views\filter
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\filter\InOperator
;
/**
* Filter by vocabulary machine name.
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_vocabulary_machine_name
extends
views_handler_filter_in_operator
{
/**
* @Plugin(
* plugin_id = "vocabulary_machine_name"
* )
*/
class
VocabularyMachineName
extends
InOperator
{
function
get_value_options
()
{
if
(
isset
(
$this
->
value_options
))
{
return
;
...
...
lib/Views/taxonomy/Plugin/views/filter/
views_handler_filter_vocabulary_vid.inc
→
lib/Views/taxonomy/Plugin/views/filter/
VocabularyVid.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_filter_vocabulary_vid.
*/
namespace
Views\taxonomy\Plugin\views\filter
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\filter\InOperator
;
/**
* Filter by vocabulary id.
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_vocabulary_vid
extends
views_handler_filter_in_operator
{
/**
* @Plugin(
* plugin_id = "vocabulary_vid"
* )
*/
class
VocabularyVid
extends
InOperator
{
function
get_value_options
()
{
if
(
isset
(
$this
->
value_options
))
{
return
;
...
...
lib/Views/taxonomy/Plugin/views/relationship/
views_handler_relationship_node_term_data.inc
→
lib/Views/taxonomy/Plugin/views/relationship/
NodeTermData.php
View file @
797e863f
...
...
@@ -5,15 +5,24 @@
* Definition of views_handler_relationship_node_term_data.
*/
namespace
Views\taxonomy\Plugin\views\relationship
;
use
Drupal\views\Join
;
use
Drupal\views\Plugin\views\relationship\RelationshipPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Relationship handler to return the taxonomy terms of nodes.
*
* @ingroup views_relationship_handlers
*/
class
views_handler_relationship_node_term_data
extends
RelationshipPluginBase
{
/**
* @Plugin(
* plugin_id = "node_term_data"
* )
*/
class
NodeTermData
extends
RelationshipPluginBase
{
function
init
(
&
$view
,
&
$options
)
{
parent
::
init
(
$view
,
$options
);
...
...
lib/Views/translation/Plugin/views/argument/
views_handler_argument_node_tnid.inc
→
lib/Views/translation/Plugin/views/argument/
NodeTnid.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Provide node tnid argument handler.
*/
namespace
Views\translation\Plugin\views\argument
;
use
Drupal\views\Plugin\views\argument\Numeric
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept a node translation id.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_node_tnid
extends
views_handler_argument_numeric
{
/**
* @Plugin(
* plugin_id = "node_tnid"
* )
*/
class
NodeTnid
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the node.
*/
...
...
lib/Views/translation/Plugin/views/field/
views_handler_field_node_link_translate.inc
→
lib/Views/translation/Plugin/views/field/
NodeLinkTranslate.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_field_node_link_translate.
*/
namespace
Views\translation\Plugin\views\field
;
use
Views\node\Plugin\views\field\Link
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to present a link node translate.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_node_link_translate
extends
views_handler_field_node_link
{
/**
* @Plugin(
* plugin_id = "node_link_translate"
* )
*/
class
NodeLinkTranslate
extends
Link
{
function
render_link
(
$data
,
$values
)
{
// ensure user has access to edit this node.
$node
=
$this
->
get_value
(
$values
);
...
...
lib/Views/translation/Plugin/views/field/
views_handler_field_node_translation_link.inc
→
lib/Views/translation/Plugin/views/field/
NodeTranslationLink.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_field_node_translation_link.
*/
namespace
Views\translation\Plugin\views\field
;
use
Drupal\views\Plugin\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to present a link to the node.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_node_translation_link
extends
views_handler_field
{
/**
* @Plugin(
* plugin_id = "node_translation_link"
* )
*/
class
NodeTranslationLink
extends
FieldPluginBase
{
function
construct
()
{
parent
::
construct
();
$this
->
additional_fields
[
'nid'
]
=
'nid'
;
...
...
lib/Views/translation/Plugin/views/filter/
views_handler_filter_node_tnid.inc
→
lib/Views/translation/Plugin/views/filter/
NodeTnid.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_filter_node_tnid.
*/
namespace
Views\translation\Plugin\views\filter
;
use
Drupal\views\Plugin\views\filter\FilterPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Filter by whether the node is the original translation.
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_node_tnid
extends
views_handler_filter
{
/**
* @Plugin(
* plugin_id = "node_tnid"
* )
*/
class
NodeTnid
extends
FilterPluginBase
{
function
admin_summary
()
{
}
function
option_definition
()
{
$options
=
parent
::
option_definition
();
...
...
lib/Views/translation/Plugin/views/filter/
views_handler_filter_node_tnid_child.inc
→
lib/Views/translation/Plugin/views/filter/
NodeTnidChild.php
View file @
797e863f
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_filter_node_tnid_child.
*/
namespace
Views\translation\Plugin\views\filter
;
use
Drupal\views\Plugin\views\filter\FilterPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Filter by whether the node is not the original translation.
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_node_tnid_child
extends
views_handler_filter
{
/**
* @Plugin(
* plugin_id = "node_tnid_child"
* )
*/
class
NodeTnidChild
extends
FilterPluginBase
{
function
admin_summary
()
{
}
function
operator_form
(
&
$form
,
&
$form_state
)
{
}
function
can_expose
()
{
return
FALSE
;
}
...
...
lib/Views/translation/Plugin/views/relationship/
views_handler_relationship_translation.inc
→
lib/Views/translation/Plugin/views/relationship/
Translation.php
View file @
797e863f
...
...
@@ -5,8 +5,11 @@
* Definition of views_handler_relationship_translation.
*/
namespace
Views\translation\Plugin\views\relationship
;
use
Drupal\views\Join
;
use
Drupal\views\Plugin\views\relationship\RelationshipPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Handles relationships for content translation sets and provides multiple
...
...
@@ -14,7 +17,13 @@
*
* @ingroup views_relationship_handlers
*/
class
views_handler_relationship_translation
extends
RelationshipPluginBase
{
/**
* @Plugin(
* plugin_id = "translation"
* )
*/
class
Translation
extends
RelationshipPluginBase
{
function
option_definition
()
{
$options
=
parent
::
option_definition
();
$options
[
'language'
]
=
array
(
'default'
=>
'current'
);
...
...
lib/Views/user/Plugin/views/argument/
views_handler_argument_users_roles_rid.inc
→
lib/Views/user/Plugin/views/argument/
RolesRid.php
View file @
797e863f
...
...
@@ -5,6 +5,9 @@
* Definition of views_handler_argument_users_roles_rid.
*/
namespace
Views\user\Plugin\views\argument
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugin\views\argument\ManyToOne
;
/**
...
...
@@ -12,7 +15,13 @@
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_users_roles_rid
extends
ManyToOne
{