From debb846f9c7b7a8b2c083d8d1e66ecc941e2ed26 Mon Sep 17 00:00:00 2001
From: hamza dwaya <60245-hamzadwaya@users.noreply.drupalcode.org>
Date: Wed, 30 Oct 2024 12:41:57 +0000
Subject: [PATCH 1/3] Update file editing_helper.module

---
 editing_helper.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/editing_helper.module b/editing_helper.module
index 5d9a126..85cc2af 100644
--- a/editing_helper.module
+++ b/editing_helper.module
@@ -76,8 +76,8 @@ function editing_helper_preprocess_block(array &$variables) {
 
   // Check if the block is a field or views block.
   if ($plugin_id) {
-    [$block_type, $block_info, $block_bundle, $block_field] = explode(':', $plugin_id) + [NULL, NULL];
-
+    $parts = explode(':', $plugin_id) + [NULL, NULL, NULL, NULL];
+    [$block_type, $block_info, $block_bundle, $block_field] = $parts;
     switch ($block_type) {
       case 'block_content':
         $variables["attributes"]["class"][] = "editing-helper-block editing-helper-block-content";
-- 
GitLab


From e83609e72db5fdf69defef59b27c254a90d48a81 Mon Sep 17 00:00:00 2001
From: hamza dwaya <60245-hamzadwaya@users.noreply.drupalcode.org>
Date: Wed, 30 Oct 2024 14:36:51 +0000
Subject: [PATCH 2/3] Issue #3484610: Fix Warning Message Warning: Undefined
 array key 3 in editing_helper_preprocess_block

---
 editing_helper.module | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/editing_helper.module b/editing_helper.module
index 85cc2af..862b6a2 100644
--- a/editing_helper.module
+++ b/editing_helper.module
@@ -76,8 +76,7 @@ function editing_helper_preprocess_block(array &$variables) {
 
   // Check if the block is a field or views block.
   if ($plugin_id) {
-    $parts = explode(':', $plugin_id) + [NULL, NULL, NULL, NULL];
-    [$block_type, $block_info, $block_bundle, $block_field] = $parts;
+    [$block_type, $block_info, $block_bundle, $block_field] = explode(':', $plugin_id) + [NULL, NULL, NULL, NULL];
     switch ($block_type) {
       case 'block_content':
         $variables["attributes"]["class"][] = "editing-helper-block editing-helper-block-content";
-- 
GitLab


From 37a3eb1d68db7034d0972053d3330bc396bd0f1c Mon Sep 17 00:00:00 2001
From: HamzaDwaya <hamza@sprintive.com>
Date: Wed, 30 Oct 2024 17:55:42 +0300
Subject: [PATCH 3/3] Issue #3484610: Fix Warning Message Warning: Undefined
 array key 3 in editing_helper_preprocess_block

---
 editing_helper.module | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/editing_helper.module b/editing_helper.module
index 862b6a2..ec7c784 100644
--- a/editing_helper.module
+++ b/editing_helper.module
@@ -116,13 +116,13 @@ function editing_helper_preprocess_block(array &$variables) {
               break;
           }
 
-          $extenders = $display["display_options"]["display_extenders"]["editing_helper_display_extender"];
-          if (!isset($extenders)) {
+
+          if (!isset($display["display_options"]["display_extenders"]["editing_helper_display_extender"])) {
             return;
           }
 
           // Retrieve the settings of our plugins using our custom plugin method.
-          $description_values = $extenders["view_description_helper"]["description"];
+          $description_values = $display["display_options"]["display_extenders"]["editing_helper_display_extender"]["view_description_helper"]["description"];
           $help_text = !empty($description_values) ? $description_values : $help_default_text;
         }
         break;
-- 
GitLab