From d4886559dea0dc1a62495975befd864e31c19169 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Wed, 17 Oct 2012 12:12:25 -0400 Subject: [PATCH] Issue #1808756 by xjm, tim.plunkett: Remove all references to hook_views_plugins(). --- .../Plugin/views/access/AccessPluginBase.php | 2 -- .../ArgumentDefaultPluginBase.php | 2 -- .../ArgumentValidatorPluginBase.php | 2 -- .../views/Plugin/views/cache/CachePluginBase.php | 2 -- .../Plugin/views/display/DisplayPluginBase.php | 2 -- .../views/exposed_form/ExposedFormPluginBase.php | 2 -- .../views/Plugin/views/pager/PagerPluginBase.php | 2 -- .../views/Plugin/views/row/RowPluginBase.php | 2 -- .../views/Plugin/views/style/StylePluginBase.php | 2 -- views.module | 15 ++++++--------- 10 files changed, 6 insertions(+), 27 deletions(-) diff --git a/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php b/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php index a25322339f2d..81ad2193b4df 100644 --- a/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php +++ b/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php @@ -17,8 +17,6 @@ * * Therefore it primarily has to implement the access and the get_access_callback * method. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php b/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php index 5465f0e4383f..c957e309c4ed 100644 --- a/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php +++ b/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php @@ -14,8 +14,6 @@ * @defgroup views_argument_default_plugins Views argument default plugins * @{ * Allow specialized methods of filling in arguments when they aren't provided. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php b/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php index c14be5f59714..9d9d92ce3f0d 100644 --- a/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php +++ b/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php @@ -14,8 +14,6 @@ * @defgroup views_argument_validate_plugins Views argument validate plugins * @{ * Allow specialized methods of validating arguments. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php b/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php index a236d8073e21..400fd0c0319f 100644 --- a/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php +++ b/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php @@ -19,8 +19,6 @@ * * Cache plugins can handle both caching of just the database result and * the rendered output of the view. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index e17636bd1fc7..5c58c5748157 100644 --- a/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -19,8 +19,6 @@ * handle creating Views from a Drupal block hook. They can also * handle creating Views from an external module source, such as * a Panels pane, or an insert view, or a CCK field type. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php b/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php index c583d65ee004..4cad847dcbca 100644 --- a/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php +++ b/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php @@ -16,8 +16,6 @@ * Plugins that handle the validation/submission and rendering of exposed forms. * * If needed, it is possible to use them to add additional form elements. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php b/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php index 11b8724c7676..82387b73cdb5 100644 --- a/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php +++ b/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php @@ -17,8 +17,6 @@ * * The pager takes care about altering the query for its needs, altering some * global information of pagers and finally rendering itself. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/row/RowPluginBase.php b/lib/Drupal/views/Plugin/views/row/RowPluginBase.php index 2e4fe83f0efa..97a6656511a8 100644 --- a/lib/Drupal/views/Plugin/views/row/RowPluginBase.php +++ b/lib/Drupal/views/Plugin/views/row/RowPluginBase.php @@ -17,8 +17,6 @@ * * They are tightly coupled to style plugins, in that a style plugin is what * calls the row plugin. - * - * @see hook_views_plugins() */ /** diff --git a/lib/Drupal/views/Plugin/views/style/StylePluginBase.php b/lib/Drupal/views/Plugin/views/style/StylePluginBase.php index 65c83d84ff27..ee8081d557fb 100644 --- a/lib/Drupal/views/Plugin/views/style/StylePluginBase.php +++ b/lib/Drupal/views/Plugin/views/style/StylePluginBase.php @@ -23,8 +23,6 @@ * Many style plugins can have an optional 'row' plugin, that displays * a single record. Not all style plugins can utilize this, so it is * up to the plugin to set this up and call through to the row plugin. - * - * @see hook_views_plugins() */ /** diff --git a/views.module b/views.module index 3d2d1c4e9aea..4ead28bd9bb1 100644 --- a/views.module +++ b/views.module @@ -858,10 +858,9 @@ function views_add_block_contextual_links(&$block, ViewExecutable $view, $displa * defined any contextual links that are intended to be displayed in the * requested location; if so, it attaches them. The contextual links intended * for a particular location are defined by the 'contextual links' and - * 'contextual_links_locations' properties in hook_views_plugins() and - * hook_views_plugins_alter(); as a result, these hook implementations have - * full control over where and how contextual links are rendered for each - * display. + * 'contextual_links_locations' properties in the plugin annotation; as a + * result, these hook implementations have full control over where and how + * contextual links are rendered for each display. * * In addition to attaching the contextual links to the passed-in array (via * the standard #contextual_links property), this function also attaches @@ -897,16 +896,14 @@ function views_add_block_contextual_links(&$block, ViewExecutable $view, $displa * view. * If you are rendering a view and its contextual links in another location, * you can pass in a different value for this parameter. However, you will - * also need to use hook_views_plugins() or hook_views_plugins_alter() to - * declare, via the 'contextual_links_locations' array key, which view - * displays support having their contextual links rendered in the location - * you have defined. + * also need to set 'contextual_links_locations' in your plugin annotation to + * indicate which view displays support having their contextual links + * rendered in the location you have defined. * @param $view * The view whose contextual links will be added. * @param $display_id * The ID of the display within $view whose contextual links will be added. * - * @see hook_views_plugins() * @see views_block_view() * @see views_page_alter() * @see template_preprocess_views_view() -- GitLab