Change to attribute technique

This commit is contained in:
2026-01-24 09:34:16 -06:00
parent 6c40866ed6
commit d48b6c826b

View File

@@ -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 {
/**