Skip to content
Snippets Groups Projects

Issue #3478392 by tr: [10.3] Convert ViewsStyle plugin from annotation to attributes

1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -4,6 +4,8 @@ namespace Drupal\views_aggregator\Plugin\views\style;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\views\Attribute\ViewsStyle;
use Drupal\views\Plugin\views\field\BulkForm;
use Drupal\views\Plugin\views\style\Table as ViewsTable;
use Drupal\views\Render\ViewsRenderPipelineMarkup;
@@ -24,6 +26,13 @@ use Drupal\views\ResultRow;
* display_types = {"normal"}
* )
*/
#[ViewsStyle(
id: "views_aggregator_plugin_style_table",
title: new TranslatableMarkup("Table with aggregation options"),
help: new TranslatableMarkup("Creates a tabular UI for the user to define aggregation functions."),
theme: "views_aggregator_results_table",
display_types: ["normal"],
)]
class Table extends ViewsTable {
/**
Loading