From d48b6c826b609dbaaa440eb676015808a6e4378a Mon Sep 17 00:00:00 2001 From: Aaron Axvig Date: Sat, 24 Jan 2026 09:34:16 -0600 Subject: [PATCH] Change to attribute technique --- src/Plugin/Block/ArchiveTreeBlock.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Plugin/Block/ArchiveTreeBlock.php b/src/Plugin/Block/ArchiveTreeBlock.php index d0f3ea3..41ecaf9 100644 --- a/src/Plugin/Block/ArchiveTreeBlock.php +++ b/src/Plugin/Block/ArchiveTreeBlock.php @@ -3,18 +3,18 @@ namespace Drupal\archive_tree\Plugin\Block; use Drupal\Core\Block\BlockBase; +use Drupal\Core\Block\Attribute\Block; use Drupal\Core\Form\FormStateInterface; use Drupal\node\Entity\NodeType; /** - * Provides an 'Archive tree' block. - * - * @Block( - * id = "archive_tree_block", - * admin_label = @Translation("Archive tree"), - * ) + * Provides an 'Archive Tree' block. */ +#[\Drupal\Core\Block\Annotation\Block( + id: "archive_tree_block", + admin_label: ["Archive tree"] +)] class ArchiveTreeBlock extends BlockBase { /**