From 50eb491feedbd51ec33e584bcc0d94b9a893dff7 Mon Sep 17 00:00:00 2001
From: Paulo Henrique Cota Starling <ppstarling@hotmail.com>
Date: Tue, 25 Apr 2023 23:08:12 -0300
Subject: [PATCH] Fixing documentation

---
 src/Service/BlockClassHelperService.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Service/BlockClassHelperService.php b/src/Service/BlockClassHelperService.php
index f008467..cc55150 100644
--- a/src/Service/BlockClassHelperService.php
+++ b/src/Service/BlockClassHelperService.php
@@ -108,9 +108,9 @@ class BlockClassHelperService {
   /**
    * The block entity.
    *
-   * @var useDrupal\block\Entity\Block
+   * @var \Drupal\Core\Entity\EntityStorageInterface
    */
-  protected $blockEntity;
+  protected $blockEntityStorage;
 
   /**
    * Construct of Block Class service.
@@ -127,7 +127,7 @@ class BlockClassHelperService {
     $this->entityRepository = $entityRepository;
     $this->currentUser = $currentUser;
     $this->entityTypeManager = $entity_manager;
-    $this->blockEntity = $this->entityTypeManager->getStorage('block');
+    $this->blockEntityStorage = $this->entityTypeManager->getStorage('block');
   }
 
   /**
@@ -388,12 +388,12 @@ class BlockClassHelperService {
     }
 
     // If there is no block with this ID, skip.
-    if (empty($this->blockEntity->load($variables['elements']['#id']))) {
+    if (empty($this->blockEntityStorage->load($variables['elements']['#id']))) {
       return;
     }
 
     // Load the block by ID.
-    $block = $this->blockEntity->load($variables['elements']['#id']);
+    $block = $this->blockEntityStorage->load($variables['elements']['#id']);
 
     // Add attributes on block.
     $this->addAttributesOnBlock($block, $variables);
-- 
GitLab