diff --git a/core/modules/views/lib/Drupal/views/Annotation/ViewsHandler.php b/core/lib/Drupal/Component/Annotation/PluginID.php similarity index 51% rename from core/modules/views/lib/Drupal/views/Annotation/ViewsHandler.php rename to core/lib/Drupal/Component/Annotation/PluginID.php index 50b18dc..dcb27aa 100644 --- a/core/modules/views/lib/Drupal/views/Annotation/ViewsHandler.php +++ b/core/lib/Drupal/Component/Annotation/PluginID.php @@ -2,23 +2,23 @@ /** * @file - * Contains \Drupal\views\Annotation\ViewsHandler. + * Contains Drupal\Component\Annotation\PluginID. */ -namespace Drupal\views\Annotation; - -use Drupal\Component\Annotation\AnnotationInterface; +namespace Drupal\Component\Annotation; /** - * Defines a Views handler annotation object. + * Defines a Plugin annotation object that just contains an ID. * * @Annotation */ -class ViewsHandler implements AnnotationInterface { +class PluginID implements AnnotationInterface { /** * The plugin ID. * + * When an annotation is given no key, 'value' is assumed by Doctrine. + * * @var string */ public $value; diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php index 23087e3..7562c94 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php @@ -8,14 +8,14 @@ namespace Drupal\comment\Plugin\views\filter; use Drupal\views\Plugin\views\filter\Date; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler for the newer of last comment / node updated. * * @ingroup views_filter_handlers * - * @ViewsHandler("ncs_last_updated") + * @PluginID("ncs_last_updated") */ class NcsLastUpdated extends Date { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php index a91ad27..e49c116 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php @@ -8,14 +8,14 @@ namespace Drupal\comment\Plugin\views\filter; use Drupal\views\Plugin\views\filter\InOperator; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter based on comment node status. * * @ingroup views_filter_handlers * - * @ViewsHandler("node_comment") + * @PluginID("node_comment") */ class NodeComment extends InOperator { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php index 6f0c5c1..b1c83f8 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php @@ -8,7 +8,7 @@ namespace Drupal\comment\Plugin\views\filter; use Drupal\views\Plugin\views\filter\FilterPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler to accept a user id to check for nodes that user posted or @@ -16,7 +16,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("comment_user_uid") + * @PluginID("comment_user_uid") */ class UserUid extends FilterPluginBase { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php index 0748a93..9e2c70e 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php @@ -8,7 +8,7 @@ namespace Drupal\comment\Plugin\views\sort; use Drupal\views\Plugin\views\sort\SortPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Sort handler to sort by last comment name which might be in 2 different @@ -16,7 +16,7 @@ * * @ingroup views_sort_handlers * - * @ViewsHandler("comment_ncs_last_comment_name") + * @PluginID("comment_ncs_last_comment_name") */ class NcsLastCommentName extends SortPluginBase { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php index dc5da68..dfef21a 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php @@ -8,14 +8,14 @@ namespace Drupal\comment\Plugin\views\sort; use Drupal\views\Plugin\views\sort\Date; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Sort handler for the newer of last comment / node updated. * * @ingroup views_sort_handlers * - * @ViewsHandler("ncs_last_updated") + * @PluginID("ncs_last_updated") */ class NcsLastUpdated extends Date { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/Thread.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/Thread.php index 3581e32..1c0d1c5 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/Thread.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/sort/Thread.php @@ -8,14 +8,14 @@ namespace Drupal\comment\Plugin\views\sort; use Drupal\views\Plugin\views\sort\SortPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Sort handler for ordering by thread. * * @ingroup views_sort_handlers * - * @ViewsHandler("comment_thread") + * @PluginID("comment_thread") */ class Thread extends SortPluginBase { diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/filter/FieldList.php b/core/modules/field/lib/Drupal/field/Plugin/views/filter/FieldList.php index 3ae7f86..17e143b 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/filter/FieldList.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/filter/FieldList.php @@ -8,14 +8,14 @@ namespace Drupal\field\Plugin\views\filter; use Drupal\views\Plugin\views\filter\ManyToOne; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler which uses list-fields as options. * * @ingroup views_filter_handlers * - * @ViewsHandler("field_list") + * @PluginID("field_list") */ class FieldList extends ManyToOne { diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php b/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php index eb1f1e1..6ae2118 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php @@ -10,7 +10,7 @@ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\relationship\RelationshipPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Views; /** @@ -18,7 +18,7 @@ * * @ingroup views_relationship_handlers * - * @ViewsHandler("entity_reverse") + * @PluginID("entity_reverse") */ class EntityReverse extends RelationshipPluginBase { diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php b/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php index 1bfeeb6..20439fe 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php @@ -7,7 +7,7 @@ namespace Drupal\file\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\filter\InOperator; /** @@ -15,7 +15,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("file_status") + * @PluginID("file_status") */ class Status extends InOperator { diff --git a/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php b/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php index 1f1f866..7847ccc 100644 --- a/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php +++ b/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php @@ -8,7 +8,7 @@ namespace Drupal\history\Plugin\views\filter; use Drupal\views\Plugin\views\filter\FilterPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter for new content. @@ -18,7 +18,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("history_user_timestamp") + * @PluginID("history_user_timestamp") */ class HistoryUserTimestamp extends FilterPluginBase { diff --git a/core/modules/language/lib/Drupal/language/Plugin/views/filter/LanguageFilter.php b/core/modules/language/lib/Drupal/language/Plugin/views/filter/LanguageFilter.php index 5089e19..45311ed 100644 --- a/core/modules/language/lib/Drupal/language/Plugin/views/filter/LanguageFilter.php +++ b/core/modules/language/lib/Drupal/language/Plugin/views/filter/LanguageFilter.php @@ -8,14 +8,14 @@ namespace Drupal\language\Plugin\views\filter; use Drupal\views\Plugin\views\filter\InOperator; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Provides filtering by language. * * @ingroup views_filter_handlers * - * @ViewsHandler("language") + * @PluginID("language") */ class LanguageFilter extends InOperator { diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/area/ListingEmpty.php b/core/modules/node/lib/Drupal/node/Plugin/views/area/ListingEmpty.php index f508110..666cf26 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/area/ListingEmpty.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/area/ListingEmpty.php @@ -7,7 +7,7 @@ namespace Drupal\node\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\area\AreaPluginBase; /** @@ -15,7 +15,7 @@ * * @ingroup views_area_handlers * - * @ViewsHandler("node_listing_empty") + * @PluginID("node_listing_empty") */ class ListingEmpty extends AreaPluginBase { diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php b/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php index f0bd561..f9e66b9 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php @@ -8,14 +8,14 @@ namespace Drupal\node\Plugin\views\filter; use Drupal\views\Plugin\views\filter\FilterPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter by node_access records. * * @ingroup views_filter_handlers * - * @ViewsHandler("node_access") + * @PluginID("node_access") */ class Access extends FilterPluginBase { diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/filter/Status.php b/core/modules/node/lib/Drupal/node/Plugin/views/filter/Status.php index 43a4f68..3ae361e 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/filter/Status.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/filter/Status.php @@ -8,14 +8,14 @@ namespace Drupal\node\Plugin\views\filter; use Drupal\views\Plugin\views\filter\FilterPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter by published status. * * @ingroup views_filter_handlers * - * @ViewsHandler("node_status") + * @PluginID("node_status") */ class Status extends FilterPluginBase { diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/filter/UidRevision.php b/core/modules/node/lib/Drupal/node/Plugin/views/filter/UidRevision.php index 249230c7..9ed9fe3 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/filter/UidRevision.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/filter/UidRevision.php @@ -8,14 +8,14 @@ namespace Drupal\node\Plugin\views\filter; use Drupal\user\Plugin\views\filter\Name; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler to check for revisions a certain user has created. * * @ingroup views_filter_handlers * - * @ViewsHandler("node_uid_revision") + * @PluginID("node_uid_revision") */ class UidRevision extends Name { diff --git a/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php b/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php index d3063d2..afb7724 100644 --- a/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php +++ b/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php @@ -9,14 +9,14 @@ use Drupal\search\SearchQuery; use Drupal\views\Plugin\views\filter\FilterPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Field handler to provide simple renderer that allows linking to a node. * * @ingroup views_filter_handlers * - * @ViewsHandler("search") + * @PluginID("search") */ class Search extends FilterPluginBase { diff --git a/core/modules/search/lib/Drupal/search/Plugin/views/sort/Score.php b/core/modules/search/lib/Drupal/search/Plugin/views/sort/Score.php index 3717cf9..c547d0e 100644 --- a/core/modules/search/lib/Drupal/search/Plugin/views/sort/Score.php +++ b/core/modules/search/lib/Drupal/search/Plugin/views/sort/Score.php @@ -8,14 +8,14 @@ namespace Drupal\search\Plugin\views\sort; use Drupal\views\Plugin\views\sort\SortPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Field handler to provide simple renderer that allows linking to a node. * * @ingroup views_sort_handlers * - * @ViewsHandler("search_score") + * @PluginID("search_score") */ class Score extends SortPluginBase { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php index b228aec..f485ac6 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php @@ -9,7 +9,7 @@ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\filter\ManyToOne; /** @@ -17,7 +17,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("taxonomy_index_tid") + * @PluginID("taxonomy_index_tid") */ class TaxonomyIndexTid extends ManyToOne { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php index f0953ca..4ceb482 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php @@ -7,7 +7,7 @@ namespace Drupal\taxonomy\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler for taxonomy terms with depth. @@ -17,7 +17,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("taxonomy_index_tid_depth") + * @PluginID("taxonomy_index_tid_depth") */ class TaxonomyIndexTidDepth extends TaxonomyIndexTid { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/relationship/NodeTermData.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/relationship/NodeTermData.php index 8fc2b48..f365c3a 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/relationship/NodeTermData.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/relationship/NodeTermData.php @@ -10,14 +10,14 @@ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\relationship\RelationshipPluginBase; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Relationship handler to return the taxonomy terms of nodes. * * @ingroup views_relationship_handlers * - * @ViewsHandler("node_term_data") + * @PluginID("node_term_data") */ class NodeTermData extends RelationshipPluginBase { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php index 6a48f48..26dfd9a 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php @@ -7,7 +7,7 @@ namespace Drupal\user\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\filter\BooleanOperator; @@ -17,7 +17,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("user_current") + * @PluginID("user_current") */ class Current extends BooleanOperator { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php index 2d27f4d..8c5104c 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php @@ -8,14 +8,14 @@ namespace Drupal\user\Plugin\views\filter; use Drupal\views\Plugin\views\filter\InOperator; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler for usernames. * * @ingroup views_filter_handlers * - * @ViewsHandler("user_name") + * @PluginID("user_name") */ class Name extends InOperator { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php index b3952ec..54f24f8 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php @@ -7,7 +7,7 @@ namespace Drupal\user\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\filter\ManyToOne; /** @@ -15,7 +15,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("user_permissions") + * @PluginID("user_permissions") */ class Permissions extends ManyToOne { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Roles.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Roles.php index c8ef3ac..4aa9d53 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Roles.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Roles.php @@ -7,7 +7,7 @@ namespace Drupal\user\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\filter\ManyToOne; /** @@ -15,7 +15,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("user_roles") + * @PluginID("user_roles") */ class Roles extends ManyToOne { diff --git a/core/modules/views/lib/Drupal/views/Plugin/Discovery/ViewsHandlerDiscovery.php b/core/modules/views/lib/Drupal/views/Plugin/Discovery/ViewsHandlerDiscovery.php index aad9be0..b23fed2 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Discovery/ViewsHandlerDiscovery.php +++ b/core/modules/views/lib/Drupal/views/Plugin/Discovery/ViewsHandlerDiscovery.php @@ -40,7 +40,7 @@ function __construct($type, array $root_namespaces = array()) { foreach ($root_namespaces as $namespace => $dir) { $plugin_namespaces["$namespace\\Plugin\\views\\{$type}"] = array($dir); } - parent::__construct($plugin_namespaces, $annotation_namespaces, 'Drupal\views\Annotation\ViewsHandler'); + parent::__construct($plugin_namespaces, $annotation_namespaces, 'Drupal\Component\Annotation\PluginID'); } /** diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Broken.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Broken.php index eebc4bc..64a63a0 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Broken.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Broken.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * A special handler to take the place of missing or broken handlers. * * @ingroup views_area_handlers * - * @ViewsHandler("broken") + * @PluginID("broken") */ class Broken extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php index ceb2295..4a41d0a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php @@ -9,7 +9,7 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\area\AreaPluginBase; /** @@ -17,7 +17,7 @@ * * @ingroup views_area_handlers * - * @ViewsHandler("entity") + * @PluginID("entity") */ class Entity extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php index 7277a33..81f6e85 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Views area handler to display some configurable result summary. * * @ingroup views_area_handlers * - * @ViewsHandler("result") + * @PluginID("result") */ class Result extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php index c38a4a3..4c926ad 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Views area text handler. * * @ingroup views_area_handlers * - * @ViewsHandler("text") + * @PluginID("text") */ class Text extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php index 51f0ca5..002537a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Views area text handler. * * @ingroup views_area_handlers * - * @ViewsHandler("text_custom") + * @PluginID("text_custom") */ class TextCustom extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php index 797e11f..7ee0197 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Views area title override handler. * * @ingroup views_area_handlers * - * @ViewsHandler("title") + * @PluginID("title") */ class Title extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php index d509fe8..26cce16 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\area; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Views area handlers. Insert a view inside of an area. * * @ingroup views_area_handlers * - * @ViewsHandler("view") + * @PluginID("view") */ class View extends AreaPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php index bdfab44..e5327f1 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; @@ -27,7 +27,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("boolean") + * @PluginID("boolean") */ class BooleanOperator extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php index 6bbffe6..d19fc6a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Simple filter to handle matching of boolean values. @@ -20,7 +20,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("boolean_string") + * @PluginID("boolean_string") */ class BooleanOperatorString extends BooleanOperator { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php index 8e7390a..701cabb 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; @@ -16,7 +16,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("broken") + * @PluginID("broken") */ class Broken extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php index 0ceca84..1ce3e95 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; @@ -16,7 +16,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("bundle") + * @PluginID("bundle") */ class Bundle extends InOperator { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php index 62de287..895c15e 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter handler which allows to search on multiple fields. * * @ingroup views_field_handlers * - * @ViewsHandler("combine") + * @PluginID("combine") */ class Combine extends String { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Date.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Date.php index 4b18fc6..ea46efc 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Date.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Date.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Filter to handle dates stored as a timestamp. * * @ingroup views_filter_handlers * - * @ViewsHandler("date") + * @PluginID("date") */ class Date extends Numeric { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php index afe1ea4..f6af850 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Simple filter to handle equal to / not equal to filters * * @ingroup views_filter_handlers * - * @ViewsHandler("equality") + * @PluginID("equality") */ class Equality extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php index 9c02d68..02aad33 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Simple filter to handle greater than/less than filters * * @ingroup views_filter_handlers * - * @ViewsHandler("groupby_numeric") + * @PluginID("groupby_numeric") */ class GroupByNumeric extends Numeric { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php index fa02a26..dfe89ea 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; @@ -20,7 +20,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("in_operator") + * @PluginID("in_operator") */ class InOperator extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/ManyToOne.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/ManyToOne.php index 323d303..1f3a672 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/ManyToOne.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/ManyToOne.php @@ -10,7 +10,7 @@ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ManyToOneHelper; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Complex filter to handle filtering for many to one relationships, @@ -22,7 +22,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("many_to_one") + * @PluginID("many_to_one") */ class ManyToOne extends InOperator { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php index 2f93a43..3c2f753 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php @@ -8,14 +8,14 @@ namespace Drupal\views\Plugin\views\filter; use Drupal\Core\Database\Database; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Simple filter to handle greater than/less than filters * * @ingroup views_filter_handlers * - * @ViewsHandler("numeric") + * @PluginID("numeric") */ class Numeric extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Standard.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Standard.php index 0d0a110..a2328f3 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Standard.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Standard.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\filter; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Default implementation of the base filter plugin. * * @ingroup views_filter_handlers * - * @ViewsHandler("standard") + * @PluginID("standard") */ class Standard extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php index d761e33..c80e39d 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php @@ -8,7 +8,7 @@ namespace Drupal\views\Plugin\views\filter; use Drupal\Core\Database\Database; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Basic textfield filter to handle string filtering commands @@ -16,7 +16,7 @@ * * @ingroup views_filter_handlers * - * @ViewsHandler("string") + * @PluginID("string") */ class String extends FilterPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/join/Standard.php b/core/modules/views/lib/Drupal/views/Plugin/views/join/Standard.php index 323d339..e4977d7 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/join/Standard.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/join/Standard.php @@ -7,14 +7,12 @@ namespace Drupal\views\Plugin\views\join; -use Drupal\Component\Annotation\Plugin; +use Drupal\Component\Annotation\PluginID; /** * Default implementation of the join plugin. * - * @Plugin( - * id = "standard" - * ) + * @PluginID("standard") */ class Standard extends JoinPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php b/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php index 0cb03c9..5faa8dc 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php @@ -6,7 +6,7 @@ */ namespace Drupal\views\Plugin\views\join; -use Drupal\Component\Annotation\Plugin; +use Drupal\Component\Annotation\PluginID; /** * Join handler for relationships that join with a subquery as the left field. @@ -17,9 +17,7 @@ * same as Join class above, except: * - left_query: The subquery to use in the left side of the join clause. * - * @Plugin( - * id = "subquery" - * ) + * @PluginID"subquery") */ class Subquery extends JoinPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Broken.php b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Broken.php index 329aec5..c891f00 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Broken.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Broken.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\relationship; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * A special handler to take the place of missing or broken handlers. * * @ingroup views_relationship_handlers * - * @ViewsHandler("broken") + * @PluginID("broken") */ class Broken extends RelationshipPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php index 87d06d3..b5c236d 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php @@ -9,7 +9,7 @@ use Drupal\Core\Database\Query\AlterableInterface; use Drupal\views\ViewExecutable; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Views; /** @@ -60,7 +60,7 @@ * * @ingroup views_relationship_handlers * - * @ViewsHandler("groupwise_max") + * @PluginID("groupwise_max") */ class GroupwiseMax extends RelationshipPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Standard.php b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Standard.php index 00ac283..c5fa8aa 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Standard.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/Standard.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\relationship; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Default implementation of the base relationship plugin. * * @ingroup views_relationship_handlers * - * @ViewsHandler("standard") + * @PluginID("standard") */ class Standard extends RelationshipPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Broken.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Broken.php index 1cc0d5d..341bc8b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Broken.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Broken.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * A special handler to take the place of missing or broken handlers. * * @ingroup views_sort_handlers * - * @ViewsHandler("broken") + * @PluginID("broken") */ class Broken extends SortPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Date.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Date.php index 11ddeb0..c65768e 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Date.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Date.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Basic sort handler for dates. @@ -15,7 +15,7 @@ * This handler enables granularity, which is the ability to make dates * equivalent based upon nearness. * - * @ViewsHandler("date") + * @PluginID("date") */ class Date extends SortPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/GroupByNumeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/GroupByNumeric.php index 29df5df..ad270f1 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/GroupByNumeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/GroupByNumeric.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; /** * Handler for GROUP BY on simple numeric fields. * - * @ViewsHandler("groupby_numeric") + * @PluginID("groupby_numeric") */ class GroupByNumeric extends SortPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php index f426cc7..d1cdb69 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php @@ -7,7 +7,7 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Views; @@ -20,7 +20,7 @@ * * This is only really useful for the {menu_links} table. * - * @ViewsHandler("menu_hierarchy") + * @PluginID("menu_hierarchy") */ class MenuHierarchy extends SortPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Random.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Random.php index a4998a7..fdc7db9 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Random.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Random.php @@ -7,12 +7,12 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Handle a random sort. * - * @ViewsHandler("random") + * @PluginID("random") */ class Random extends SortPluginBase { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Standard.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Standard.php index 6e928ea..1a6cf69 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/Standard.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/Standard.php @@ -7,14 +7,14 @@ namespace Drupal\views\Plugin\views\sort; -use Drupal\views\Annotation\ViewsHandler; +use Drupal\Component\Annotation\PluginID; /** * Default implementation of the base sort plugin. * * @ingroup views_sort_handlers * - * @ViewsHandler("standard") + * @PluginID("standard") */ class Standard extends SortPluginBase { diff --git a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php index 38ec004..8c7a7c0 100644 --- a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php +++ b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php @@ -8,16 +8,14 @@ namespace Drupal\views_test_data\Plugin\views\area; use Drupal\views\Plugin\views\area\AreaPluginBase; -use Drupal\Component\Annotation\Plugin; +use Drupal\Component\Annotation\PluginID; /** * Test area plugin. * * @see Drupal\views\Tests\Handler\AreaTest * - * @Plugin( - * id = "test_example" - * ) + * @PluginID("test_example") */ class TestExample extends AreaPluginBase { diff --git a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php index 6868262..86f8214 100644 --- a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php +++ b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php @@ -7,18 +7,11 @@ namespace Drupal\views_test_data\Plugin\views\filter; -use Drupal\Component\Annotation\Plugin; -use Drupal\Core\Annotation\Translation; +use Drupal\Component\Annotation\PluginID; use Drupal\views\Plugin\views\filter\FilterPluginBase; /** - * @Plugin( - * id = "test_filter", - * title = @Translation("Test filter plugin"), - * help = @Translation("Provides a generic filter test plugin."), - * base = "node", - * type = "type" - * ) + * @PluginID("test_filter") */ class FilterTest extends FilterPluginBase { diff --git a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/join/JoinTest.php b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/join/JoinTest.php index 728d861..e1c525c 100644 --- a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/join/JoinTest.php +++ b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/join/JoinTest.php @@ -8,16 +8,13 @@ namespace Drupal\views_test_data\Plugin\views\join; use Drupal\views\Plugin\views\join\JoinPluginBase; -use Drupal\Component\Annotation\Plugin; +use Drupal\Component\Annotation\PluginID; use Drupal\Core\Annotation\Translation; /** * Defines a join test plugin. * - * @Plugin( - * id = "join_test", - * title = @Translation("Join test") - * ) + * @PluginID("join_test") */ class JoinTest extends JoinPluginBase { /** diff --git a/core/modules/views/views.services.yml b/core/modules/views/views.services.yml index f6be9bb..7bf07a2 100644 --- a/core/modules/views/views.services.yml +++ b/core/modules/views/views.services.yml @@ -33,7 +33,7 @@ services: class: Drupal\views\Plugin\ViewsHandlerManager arguments: [filter, '%container.namespaces%'] plugin.manager.views.join: - class: Drupal\views\Plugin\ViewsPluginManager + class: Drupal\views\Plugin\ViewsHandlerManager arguments: [join, '%container.namespaces%'] plugin.manager.views.pager: class: Drupal\views\Plugin\ViewsPluginManager