From 8ab61e88c730eacdbb7efaec8851ce7dd7d31c81 Mon Sep 17 00:00:00 2001
From: Liam Morland <lkmorlan@uwaterloo.ca>
Date: Fri, 18 Dec 2020 11:56:40 -0500
Subject: [PATCH] Issue #3173862: Rename LayoutBuilderIdsConfigureBlock methods

---
 src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php b/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
index ceb8bce..70c5057 100644
--- a/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
+++ b/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
@@ -74,17 +74,17 @@ class LayoutBuilderIdsConfigureBlock implements EventSubscriberInterface {
         '#description' => t('Block ID is an optional setting which is used to support an anchor link to this block. For example, entering "feature" lets you link directly to this block by adding "#feature" to the end of the URL.</br>IDs should start with a letter, may only contain letters, numbers, underscores, hyphens, and periods, and should be unique on the page.'),
       ];
 
-      $form['#validate'][] = [$this, 'layoutBuilderIdsFormValidation'];
+      $form['#validate'][] = [$this, 'layoutBuilderIdsConfigureBlockFormValidation'];
 
       // Add our custom submit function.
-      array_unshift($form['#submit'], [$this, 'layoutBuilderIdsSubmitForm']);
+      array_unshift($form['#submit'], [$this, 'layoutBuilderIdsConfigureBlockSubmitForm']);
     }
   }
 
   /**
    * {@inheritdoc}
    */
-  public function layoutBuilderIdsFormValidation(array &$form, FormStateInterface $form_state) {
+  public function layoutBuilderIdsConfigureBlockFormValidation(array &$form, FormStateInterface $form_state) {
 
     // Get the layout builder id from the form state.
     $layout_builder_id = $form_state->getValue(['settings', 'layout_builder_id']);
@@ -164,7 +164,7 @@ class LayoutBuilderIdsConfigureBlock implements EventSubscriberInterface {
   /**
    * {@inheritdoc}
    */
-  public function layoutBuilderIdsSubmitForm(array &$form, FormStateInterface $form_state) {
+  public function layoutBuilderIdsConfigureBlockSubmitForm(array &$form, FormStateInterface $form_state) {
 
     // Load in the layout_builder_id.
     $layout_builder_id = $form_state->getValue(['settings', 'layout_builder_id']);
-- 
GitLab