Issue #1965164 by tim.plunkett: Add dedicated annotations for Views handlers.
parent
809138a7c6
commit
ee1c53e517
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains Drupal\Component\Annotation\PluginID.
|
||||
*/
|
||||
|
||||
namespace Drupal\Component\Annotation;
|
||||
|
||||
/**
|
||||
* Defines a Plugin annotation object that just contains an ID.
|
||||
*
|
||||
* @Annotation
|
||||
*/
|
||||
class PluginID implements AnnotationInterface {
|
||||
|
||||
/**
|
||||
* The plugin ID.
|
||||
*
|
||||
* When an annotation is given no key, 'value' is assumed by Doctrine.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $value;
|
||||
|
||||
/**
|
||||
* Implements \Drupal\Core\Annotation\AnnotationInterface::get().
|
||||
*/
|
||||
public function get() {
|
||||
return array(
|
||||
'id' => $this->value,
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -7,16 +7,13 @@
|
|||
|
||||
namespace Drupal\action\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\system\Plugin\views\field\BulkFormBase;
|
||||
|
||||
/**
|
||||
* Defines a actions-based bulk operation form element.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "action_bulk_form",
|
||||
* module = "action"
|
||||
* )
|
||||
* @PluginID("action_bulk_form")
|
||||
*/
|
||||
class BulkForm extends BulkFormBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\comment\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler to accept a user id to check for nodes that
|
||||
|
@ -16,10 +16,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "argument_comment_user_uid",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("argument_comment_user_uid")
|
||||
*/
|
||||
class UserUid extends ArgumentPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\comment\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to allow linking to a comment.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment")
|
||||
*/
|
||||
class Comment extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_depth",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_depth")
|
||||
*/
|
||||
class Depth extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\comment\Plugin\views\field;
|
|||
use Drupal\views\Plugin\views\field\Date;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to display the timestamp of a comment with the count of comments.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_last_timestamp",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_last_timestamp")
|
||||
*/
|
||||
class LastTimestamp extends Date {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Base field handler to present a link.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_link",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_link")
|
||||
*/
|
||||
class Link extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Provides a comment approve link.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_link_approve",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_link_approve")
|
||||
*/
|
||||
class LinkApprove extends Link {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to delete a node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_link_delete",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_link_delete")
|
||||
*/
|
||||
class LinkDelete extends Link {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link node edit.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_link_edit",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_link_edit")
|
||||
*/
|
||||
class LinkEdit extends Link {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to delete a node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_link_reply",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_link_reply")
|
||||
*/
|
||||
class LinkReply extends Link {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present the name of the last comment poster.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_ncs_last_comment_name",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_ncs_last_comment_name")
|
||||
*/
|
||||
class NcsLastCommentName extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\Date;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to display the newer of last comment / node updated.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_ncs_last_updated",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_ncs_last_updated")
|
||||
*/
|
||||
class NcsLastUpdated extends Date {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Display node comment status.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_comment",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("node_comment")
|
||||
*/
|
||||
class NodeComment extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Handler for showing comment module's node link.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_node_link",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_node_link")
|
||||
*/
|
||||
class NodeLink extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\comment\Plugin\views\field;
|
|||
use Drupal\views\Plugin\views\field\Numeric;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to display the number of new comments.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_new_comments",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("node_new_comments")
|
||||
*/
|
||||
class NodeNewComments extends Numeric {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\comment\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to allow linking to a user account or homepage.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_username",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_username")
|
||||
*/
|
||||
class Username extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\Date;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler for the newer of last comment / node updated.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "ncs_last_updated",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("ncs_last_updated")
|
||||
*/
|
||||
class NcsLastUpdated extends Date {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\InOperator;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter based on comment node status.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_comment",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("node_comment")
|
||||
*/
|
||||
class NodeComment extends InOperator {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\comment\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler to accept a user id to check for nodes that user posted or
|
||||
|
@ -16,10 +16,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_user_uid",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_user_uid")
|
||||
*/
|
||||
class UserUid extends FilterPluginBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\comment\Plugin\views\sort;
|
||||
|
||||
use Drupal\views\Plugin\views\sort\SortPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Sort handler to sort by last comment name which might be in 2 different
|
||||
|
@ -16,10 +16,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_sort_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_ncs_last_comment_name",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_ncs_last_comment_name")
|
||||
*/
|
||||
class NcsLastCommentName extends SortPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\sort;
|
||||
|
||||
use Drupal\views\Plugin\views\sort\Date;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Sort handler for the newer of last comment / node updated.
|
||||
*
|
||||
* @ingroup views_sort_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "ncs_last_updated",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("ncs_last_updated")
|
||||
*/
|
||||
class NcsLastUpdated extends Date {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\comment\Plugin\views\sort;
|
||||
|
||||
use Drupal\views\Plugin\views\sort\SortPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Sort handler for ordering by thread.
|
||||
*
|
||||
* @ingroup views_sort_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "comment_thread",
|
||||
* module = "comment"
|
||||
* )
|
||||
* @PluginID("comment_thread")
|
||||
*/
|
||||
class Thread extends SortPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\contextual\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "contextual_links",
|
||||
* module = "contextual"
|
||||
* )
|
||||
* @PluginID("contextual_links")
|
||||
*/
|
||||
class ContextualLinks extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\field\Plugin\views\argument;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler for list field to show the human readable name in the
|
||||
|
@ -18,10 +18,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "field_list",
|
||||
* module = "field"
|
||||
* )
|
||||
* @PluginID("field_list")
|
||||
*/
|
||||
class FieldList extends Numeric {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\field\Plugin\views\argument;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\argument\String;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler for list field to show the human readable name in the
|
||||
|
@ -18,10 +18,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "field_list_string",
|
||||
* module = "field"
|
||||
* )
|
||||
* @PluginID("field_list_string")
|
||||
*/
|
||||
class ListString extends String {
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use Drupal\Core\Entity\EntityInterface;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
@ -19,10 +19,7 @@ use Drupal\views\Views;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "field",
|
||||
* module = "field"
|
||||
* )
|
||||
* @PluginID("field")
|
||||
*/
|
||||
class Field extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\field\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\ManyToOne;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler which uses list-fields as options.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "field_list",
|
||||
* module = "field"
|
||||
* )
|
||||
* @PluginID("field_list")
|
||||
*/
|
||||
class FieldList extends ManyToOne {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\field\Plugin\views\relationship;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\relationship\RelationshipPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
|
@ -18,10 +18,7 @@ use Drupal\views\Views;
|
|||
*
|
||||
* @ingroup views_relationship_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "entity_reverse",
|
||||
* module = "field"
|
||||
* )
|
||||
* @PluginID("entity_reverse")
|
||||
*/
|
||||
class EntityReverse extends RelationshipPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\argument;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\argument\Numeric;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_fid",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_fid")
|
||||
*/
|
||||
class Fid extends Numeric {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_extension",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_extension")
|
||||
*/
|
||||
class Extension extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Drupal\file\Plugin\views\field;
|
|||
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file")
|
||||
*/
|
||||
class File extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to add rendering MIME type images as an option on the filemime field.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_filemime",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_filemime")
|
||||
*/
|
||||
class FileMime extends File {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_status",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_status")
|
||||
*/
|
||||
class Status extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,15 +7,12 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to add rendering file paths as file URLs instead of as internal file URIs.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_uri",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_uri")
|
||||
*/
|
||||
class Uri extends File {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\file\Plugin\views\filter;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\filter\InOperator;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\filter\InOperator;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "file_status",
|
||||
* module = "file"
|
||||
* )
|
||||
* @PluginID("file_status")
|
||||
*/
|
||||
class Status extends InOperator {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\history\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\node\Plugin\views\field\Node;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to display the marker for new content.
|
||||
|
@ -20,10 +20,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "history_user_timestamp",
|
||||
* module = "history"
|
||||
* )
|
||||
* @PluginID("history_user_timestamp")
|
||||
*/
|
||||
class HistoryUserTimestamp extends Node {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\history\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter for new content.
|
||||
|
@ -18,10 +18,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "history_user_timestamp",
|
||||
* module = "history"
|
||||
* )
|
||||
* @PluginID("history_user_timestamp")
|
||||
*/
|
||||
class HistoryUserTimestamp extends FilterPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\language\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Defines an argument handler to accept a language.
|
||||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "language",
|
||||
* module = "language"
|
||||
* )
|
||||
* @PluginID("language")
|
||||
*/
|
||||
class LanguageArgument extends ArgumentPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\language\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Defines a field handler to translate a language into its readable form.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "language",
|
||||
* module = "language"
|
||||
* )
|
||||
* @PluginID("language")
|
||||
*/
|
||||
class LanguageField extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\language\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\InOperator;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Provides filtering by language.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "language",
|
||||
* module = "language"
|
||||
* )
|
||||
* @PluginID("language")
|
||||
*/
|
||||
class LanguageFilter extends InOperator {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\node\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\area\AreaPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\area\AreaPluginBase;
|
|||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_listing_empty",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_listing_empty")
|
||||
*/
|
||||
class ListingEmpty extends AreaPluginBase {
|
||||
|
||||
|
|
|
@ -8,15 +8,12 @@
|
|||
namespace Drupal\node\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler to accept a node id.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_nid",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_nid")
|
||||
*/
|
||||
class Nid extends Numeric {
|
||||
|
||||
|
|
|
@ -8,15 +8,12 @@
|
|||
namespace Drupal\node\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\String;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler to accept a node type.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_type",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_type")
|
||||
*/
|
||||
class Type extends String {
|
||||
|
||||
|
|
|
@ -8,16 +8,13 @@
|
|||
namespace Drupal\node\Plugin\views\argument;
|
||||
|
||||
use Drupal\user\Plugin\views\argument\Uid;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler to accept a user id to check for nodes that
|
||||
* user posted or created a revision on.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_uid_revision",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_uid_revision")
|
||||
*/
|
||||
class UidRevision extends Uid {
|
||||
|
||||
|
|
|
@ -8,15 +8,12 @@
|
|||
namespace Drupal\node\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler to accept a node revision id.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_vid",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_vid")
|
||||
*/
|
||||
class Vid extends Numeric {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\Node;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to translate a language into its readable form.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_language",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_language")
|
||||
*/
|
||||
class Language extends Node {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to the node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_link",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_link")
|
||||
*/
|
||||
class Link extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\Link;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to delete a node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_link_delete",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_link_delete")
|
||||
*/
|
||||
class LinkDelete extends Link {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\Link;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link node edit.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_link_edit",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_link_edit")
|
||||
*/
|
||||
class LinkEdit extends Link {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\node\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to provide simple renderer that allows linking to a node.
|
||||
|
@ -19,10 +19,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node")
|
||||
*/
|
||||
class Node extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\node\Plugin\views\field;
|
|||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present the path to the node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_path",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_path")
|
||||
*/
|
||||
class Path extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\node\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\node\Plugin\views\field\Node;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* A basic node_revision handler.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_revision",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_revision")
|
||||
*/
|
||||
class Revision extends Node {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\node\Plugin\views\field;
|
|||
use Drupal\node\Plugin\views\field\Link;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to a node revision.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_revision_link",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_revision_link")
|
||||
*/
|
||||
class RevisionLink extends Link {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\RevisionLink;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present link to delete a node revision.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_revision_link_delete",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_revision_link_delete")
|
||||
*/
|
||||
class RevisionLinkDelete extends RevisionLink {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\RevisionLink;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to revert a node to a revision.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_revision_link_revert",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_revision_link_revert")
|
||||
*/
|
||||
class RevisionLinkRevert extends RevisionLink {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\field;
|
||||
|
||||
use Drupal\node\Plugin\views\field\Node;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to translate a node type into its readable form.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_type",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_type")
|
||||
*/
|
||||
class Type extends Node {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter by node_access records.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_access",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_access")
|
||||
*/
|
||||
class Access extends FilterPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter by published status.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_status",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_status")
|
||||
*/
|
||||
class Status extends FilterPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\node\Plugin\views\filter;
|
||||
|
||||
use Drupal\user\Plugin\views\filter\Name;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler to check for revisions a certain user has created.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_uid_revision",
|
||||
* module = "node"
|
||||
* )
|
||||
* @PluginID("node_uid_revision")
|
||||
*/
|
||||
class UidRevision extends Name {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\search\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument that accepts query keys for search.
|
||||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "search",
|
||||
* module = "search"
|
||||
* )
|
||||
* @PluginID("search")
|
||||
*/
|
||||
class Search extends ArgumentPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\search\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\Numeric;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to provide simple renderer that allows linking to a node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "search_score",
|
||||
* module = "search"
|
||||
* )
|
||||
* @PluginID("search_score")
|
||||
*/
|
||||
class Score extends Numeric {
|
||||
|
||||
|
|
|
@ -9,17 +9,14 @@ namespace Drupal\search\Plugin\views\filter;
|
|||
|
||||
use Drupal\search\SearchQuery;
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to provide simple renderer that allows linking to a node.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "search",
|
||||
* module = "search"
|
||||
* )
|
||||
* @PluginID("search")
|
||||
*/
|
||||
class Search extends FilterPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\search\Plugin\views\sort;
|
||||
|
||||
use Drupal\views\Plugin\views\sort\SortPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to provide simple renderer that allows linking to a node.
|
||||
*
|
||||
* @ingroup views_sort_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "search_score",
|
||||
* module = "search"
|
||||
* )
|
||||
* @PluginID("search_score")
|
||||
*/
|
||||
class Score extends SortPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\taxonomy\Plugin\views\argument;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\argument\ManyToOne;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\argument\ManyToOne;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid")
|
||||
*/
|
||||
class IndexTid extends ManyToOne {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\taxonomy\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler for taxonomy terms with depth.
|
||||
|
@ -18,10 +18,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid_depth",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid_depth")
|
||||
*/
|
||||
class IndexTidDepth extends ArgumentPluginBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\taxonomy\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler for to modify depth for a previous term.
|
||||
|
@ -18,10 +18,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid_depth_modifier",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid_depth_modifier")
|
||||
*/
|
||||
class IndexTidDepthModifier extends ArgumentPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\taxonomy\Plugin\views\argument;
|
||||
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Argument handler for basic taxonomy tid.
|
||||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy")
|
||||
*/
|
||||
class Taxonomy extends Numeric {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\taxonomy\Plugin\views\argument;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\argument\Numeric;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "vocabulary_vid",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("vocabulary_vid")
|
||||
*/
|
||||
class VocabularyVid extends Numeric {
|
||||
|
||||
|
|
|
@ -7,14 +7,12 @@
|
|||
|
||||
namespace Drupal\taxonomy\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to show the language of a taxonomy term.
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_term_language"
|
||||
* )
|
||||
* @PluginID("taxonomy_term_language")
|
||||
*/
|
||||
class Language extends Taxonomy {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\taxonomy\Plugin\views\field;
|
|||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a term edit link.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "term_link_edit",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("term_link_edit")
|
||||
*/
|
||||
class LinkEdit extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\taxonomy\Plugin\views\field;
|
|||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to provide simple renderer that allows linking to a taxonomy
|
||||
|
@ -20,10 +20,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy")
|
||||
*/
|
||||
class Taxonomy extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\taxonomy\Plugin\views\field;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\field\PrerenderList;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to display all taxonomy terms of a node.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid")
|
||||
*/
|
||||
class TaxonomyIndexTid extends PrerenderList {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Drupal\taxonomy\Plugin\views\filter;
|
|||
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\filter\ManyToOne;
|
||||
|
||||
/**
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\filter\ManyToOne;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid")
|
||||
*/
|
||||
class TaxonomyIndexTid extends ManyToOne {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\taxonomy\Plugin\views\filter;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler for taxonomy terms with depth.
|
||||
|
@ -17,10 +17,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "taxonomy_index_tid_depth",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("taxonomy_index_tid_depth")
|
||||
*/
|
||||
class TaxonomyIndexTidDepth extends TaxonomyIndexTid {
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@ namespace Drupal\taxonomy\Plugin\views\relationship;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\Plugin\views\relationship\RelationshipPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Relationship handler to return the taxonomy terms of nodes.
|
||||
*
|
||||
* @ingroup views_relationship_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "node_term_data",
|
||||
* module = "taxonomy"
|
||||
* )
|
||||
* @PluginID("node_term_data")
|
||||
*/
|
||||
class NodeTermData extends RelationshipPluginBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\translation_entity\Plugin\views\field;
|
||||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
|
||||
/**
|
||||
|
@ -16,10 +16,7 @@ use Drupal\Core\Entity\EntityInterface;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "translation_entity_link",
|
||||
* module = "translation_entity"
|
||||
* )
|
||||
* @PluginID("translation_entity_link")
|
||||
*/
|
||||
class TranslationLink extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\argument;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\argument\ManyToOne;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\argument\ManyToOne;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "users_roles_rid",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("users_roles_rid")
|
||||
*/
|
||||
class RolesRid extends ManyToOne {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\argument;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\argument\Numeric;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\argument\Numeric;
|
|||
*
|
||||
* @ingroup views_argument_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_uid",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_uid")
|
||||
*/
|
||||
class Uid extends Numeric {
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Views field handler for user language.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_language",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_language")
|
||||
*/
|
||||
class Language extends User {
|
||||
|
||||
|
|
|
@ -11,17 +11,14 @@ use Drupal\views\Plugin\views\field\FieldPluginBase;
|
|||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to the user.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_link",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_link")
|
||||
*/
|
||||
class Link extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to user cancel.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_link_cancel",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_link_cancel")
|
||||
*/
|
||||
class LinkCancel extends Link {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Field handler to present a link to user edit.
|
||||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_link_edit",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_link_edit")
|
||||
*/
|
||||
class LinkEdit extends Link {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_mail",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_mail")
|
||||
*/
|
||||
class Mail extends User {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Drupal\user\Plugin\views\field;
|
|||
|
||||
use Drupal\user\Plugin\views\field\User;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\ViewExecutable;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_name",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_name")
|
||||
*/
|
||||
class Name extends User {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\field\PrerenderList;
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\field\PrerenderList;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_permissions",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_permissions")
|
||||
*/
|
||||
class Permissions extends PrerenderList {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\field\PrerenderList;
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\field\PrerenderList;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_roles",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_roles")
|
||||
*/
|
||||
class Roles extends PrerenderList {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Drupal\user\Plugin\views\field;
|
|||
|
||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\ViewExecutable;
|
|||
*
|
||||
* @ingroup views_field_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user")
|
||||
*/
|
||||
class User extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
|||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\user\UserDataInterface;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Provides access to the user data service.
|
||||
|
@ -20,10 +20,7 @@ use Drupal\Component\Annotation\Plugin;
|
|||
*
|
||||
* @see \Drupal\user\UserDataInterface
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_data",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_data")
|
||||
*/
|
||||
class UserData extends FieldPluginBase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\filter;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\views\Plugin\views\filter\BooleanOperator;
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\filter\BooleanOperator;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_current",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_current")
|
||||
*/
|
||||
class Current extends BooleanOperator {
|
||||
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
namespace Drupal\user\Plugin\views\filter;
|
||||
|
||||
use Drupal\views\Plugin\views\filter\InOperator;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Filter handler for usernames.
|
||||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_name",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_name")
|
||||
*/
|
||||
class Name extends InOperator {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\filter;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\filter\ManyToOne;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\filter\ManyToOne;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_permissions",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_permissions")
|
||||
*/
|
||||
class Permissions extends ManyToOne {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Drupal\user\Plugin\views\filter;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\filter\ManyToOne;
|
||||
|
||||
/**
|
||||
|
@ -15,10 +15,7 @@ use Drupal\views\Plugin\views\filter\ManyToOne;
|
|||
*
|
||||
* @ingroup views_filter_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "user_roles",
|
||||
* module = "user"
|
||||
* )
|
||||
* @PluginID("user_roles")
|
||||
*/
|
||||
class Roles extends ManyToOne {
|
||||
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\views\Plugin\Discovery\ViewsHandlerDiscovery.
|
||||
*/
|
||||
|
||||
namespace Drupal\views\Plugin\Discovery;
|
||||
|
||||
use Drupal\Component\Plugin\Discovery\AnnotatedClassDiscovery;
|
||||
|
||||
/**
|
||||
* Defines a discovery mechanism to find Views handlers in PSR-0 namespaces.
|
||||
*/
|
||||
class ViewsHandlerDiscovery extends AnnotatedClassDiscovery {
|
||||
|
||||
/**
|
||||
* The type of handler being discovered.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* Constructs a ViewsHandlerDiscovery object.
|
||||
*
|
||||
* @param string $type
|
||||
* The plugin type, for example filter.
|
||||
* @param array $root_namespaces
|
||||
* (optional) Array of root paths keyed by the corresponding namespace to
|
||||
* look for plugin implementations, \Plugin\views\$type will be appended to
|
||||
* each namespace. Defaults to an empty array.
|
||||
*/
|
||||
function __construct($type, array $root_namespaces = array()) {
|
||||
$this->type = $type;
|
||||
$annotation_namespaces = array(
|
||||
'Drupal\Component\Annotation' => DRUPAL_ROOT . '/core/lib',
|
||||
);
|
||||
$plugin_namespaces = array();
|
||||
foreach ($root_namespaces as $namespace => $dir) {
|
||||
$plugin_namespaces["$namespace\\Plugin\\views\\{$type}"] = array($dir);
|
||||
}
|
||||
parent::__construct($plugin_namespaces, $annotation_namespaces, 'Drupal\Component\Annotation\PluginID');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getDefinitions() {
|
||||
// Add the plugin_type to the definition.
|
||||
$definitions = parent::getDefinitions();
|
||||
foreach ($definitions as $key => $definition) {
|
||||
$definitions[$key]['plugin_type'] = $this->type;
|
||||
}
|
||||
return $definitions;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\views\Plugin\ViewsHandlerManager.
|
||||
*/
|
||||
|
||||
namespace Drupal\views\Plugin;
|
||||
|
||||
use Drupal\Component\Plugin\PluginManagerBase;
|
||||
use Drupal\Component\Plugin\Factory\DefaultFactory;
|
||||
use Drupal\Core\Plugin\Discovery\CacheDecorator;
|
||||
use Drupal\views\Plugin\Discovery\ViewsHandlerDiscovery;
|
||||
|
||||
/**
|
||||
* Plugin type manager for all views handlers.
|
||||
*/
|
||||
class ViewsHandlerManager extends PluginManagerBase {
|
||||
|
||||
/**
|
||||
* Constructs a ViewsHandlerManager object.
|
||||
*
|
||||
* @param string $type
|
||||
* The plugin type, for example filter.
|
||||
* @param array $namespaces
|
||||
* (optional) An array of paths keyed by it's corresponding namespaces.
|
||||
*/
|
||||
public function __construct($type, array $namespaces = array()) {
|
||||
$this->discovery = new ViewsHandlerDiscovery($type, $namespaces);
|
||||
$this->discovery = new CacheDecorator($this->discovery, "views:$type", 'views_info');
|
||||
|
||||
$this->factory = new DefaultFactory($this->discovery);
|
||||
}
|
||||
|
||||
}
|
|
@ -7,16 +7,14 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* A special handler to take the place of missing or broken handlers.
|
||||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "broken"
|
||||
* )
|
||||
* @PluginID("broken")
|
||||
*/
|
||||
class Broken extends AreaPluginBase {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Drupal\views\Plugin\views\area;
|
|||
|
||||
use Drupal\views\Plugin\views\display\DisplayPluginBase;
|
||||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
use Drupal\views\Plugin\views\area\AreaPluginBase;
|
||||
|
||||
/**
|
||||
|
@ -17,10 +17,7 @@ use Drupal\views\Plugin\views\area\AreaPluginBase;
|
|||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "entity",
|
||||
* module = "views"
|
||||
* )
|
||||
* @PluginID("entity")
|
||||
*/
|
||||
class Entity extends AreaPluginBase {
|
||||
|
||||
|
|
|
@ -7,16 +7,14 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Views area handler to display some configurable result summary.
|
||||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "result"
|
||||
* )
|
||||
* @PluginID("result")
|
||||
*/
|
||||
class Result extends AreaPluginBase {
|
||||
|
||||
|
|
|
@ -7,16 +7,14 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Views area text handler.
|
||||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "text"
|
||||
* )
|
||||
* @PluginID("text")
|
||||
*/
|
||||
class Text extends AreaPluginBase {
|
||||
|
||||
|
|
|
@ -7,16 +7,14 @@
|
|||
|
||||
namespace Drupal\views\Plugin\views\area;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Component\Annotation\PluginID;
|
||||
|
||||
/**
|
||||
* Views area text handler.
|
||||
*
|
||||
* @ingroup views_area_handlers
|
||||
*
|
||||
* @Plugin(
|
||||
* id = "text_custom"
|
||||
* )
|
||||
* @PluginID("text_custom")
|
||||
*/
|
||||
class TextCustom extends AreaPluginBase {
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue