From f666681c068bdc0a6f092de95fe38a38a5c57f5a Mon Sep 17 00:00:00 2001 From: nod_ <nod_@598310.no-reply.drupal.org> Date: Mon, 3 Mar 2025 14:29:17 +0100 Subject: [PATCH] Issue #3507068 by quietone: Change @Plugin references not in tests --- core/modules/views/src/Plugin/views/PluginBase.php | 2 +- .../views/src/Plugin/views/access/AccessPluginBase.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php index ca589809b232..fd7d3d0262c2 100644 --- a/core/modules/views/src/Plugin/views/PluginBase.php +++ b/core/modules/views/src/Plugin/views/PluginBase.php @@ -18,7 +18,7 @@ /** * Base class for any views plugin types. * - * Via the @Plugin definition the plugin may specify a theme function or + * Via the plugin definition the plugin may specify a theme function or * template to be used for the plugin. It also can auto-register the theme * implementation for that file or function. * - theme: the theme implementation to use in the plugin. This must be the diff --git a/core/modules/views/src/Plugin/views/access/AccessPluginBase.php b/core/modules/views/src/Plugin/views/access/AccessPluginBase.php index c1a39114691e..ee9b3636370a 100644 --- a/core/modules/views/src/Plugin/views/access/AccessPluginBase.php +++ b/core/modules/views/src/Plugin/views/access/AccessPluginBase.php @@ -32,11 +32,11 @@ * plugin should have an annotation that includes the plugin's metadata, for * example: * @code - * @Plugin( - * id = "deny_all", - * title = @Translation("No Access"), - * help = @Translation("Will not be accessible.") - * ) + * #[ViewsAccess( + * id: "deny_all", + * title: new TranslatableMarkup("No Access"), + * help: new TranslatableMarkup("Will not be accessible.") + * )] * @endcode * * The definition should include the following keys: -- GitLab