From 246d84e13bc1cd2babb647066ad0a901abeaa253 Mon Sep 17 00:00:00 2001 From: Dimitris Spachos Date: Fri, 12 Apr 2024 08:57:37 +0300 Subject: [PATCH] feat(slb-146): remove unused storage interface, constant definition to uppercase --- .../silverback_autosave.install | 4 +- .../AutosaveEntityFormStorageInterface.php | 2 +- .../Storage/AutosaveFormBackendInterface.php | 83 ------------------- 3 files changed, 3 insertions(+), 86 deletions(-) delete mode 100644 packages/drupal/silverback_autosave/src/Storage/AutosaveFormBackendInterface.php diff --git a/packages/drupal/silverback_autosave/silverback_autosave.install b/packages/drupal/silverback_autosave/silverback_autosave.install index 79270393c..6cde0cbdf 100644 --- a/packages/drupal/silverback_autosave/silverback_autosave.install +++ b/packages/drupal/silverback_autosave/silverback_autosave.install @@ -21,7 +21,7 @@ function silverback_autosave_schema() { 'fields' => [ 'form_id' => [ 'type' => 'varchar_ascii', - 'length' => AutosaveEntityFormStorageInterface::silverback_autosave_FORM_ID_LENGTH, + 'length' => AutosaveEntityFormStorageInterface::SILVERBACK_AUTOSAVE_FORM_ID_LENGTH, 'not null' => TRUE, ], // We need the form session id as it is possible that the user opens the @@ -31,7 +31,7 @@ function silverback_autosave_schema() { // case. 'form_session_id' => [ 'type' => 'varchar_ascii', - 'length' => AutosaveEntityFormStorageInterface::silverback_autosave_FORM_ID_LENGTH, + 'length' => AutosaveEntityFormStorageInterface::SILVERBACK_AUTOSAVE_FORM_ID_LENGTH, 'not null' => TRUE, ], 'entity_type_id' => [ diff --git a/packages/drupal/silverback_autosave/src/Storage/AutosaveEntityFormStorageInterface.php b/packages/drupal/silverback_autosave/src/Storage/AutosaveEntityFormStorageInterface.php index 9c14a724a..36cf6b0f7 100644 --- a/packages/drupal/silverback_autosave/src/Storage/AutosaveEntityFormStorageInterface.php +++ b/packages/drupal/silverback_autosave/src/Storage/AutosaveEntityFormStorageInterface.php @@ -12,7 +12,7 @@ interface AutosaveEntityFormStorageInterface { const AUTOSAVE_ENTITY_FORM_TABLE = 'silverback_autosave_entity_form'; - const silverback_autosave_FORM_ID_LENGTH = 512; + const SILVERBACK_AUTOSAVE_FORM_ID_LENGTH = 512; /** * Stores the entity together with the form state. diff --git a/packages/drupal/silverback_autosave/src/Storage/AutosaveFormBackendInterface.php b/packages/drupal/silverback_autosave/src/Storage/AutosaveFormBackendInterface.php deleted file mode 100644 index 167df5831..000000000 --- a/packages/drupal/silverback_autosave/src/Storage/AutosaveFormBackendInterface.php +++ /dev/null @@ -1,83 +0,0 @@ -