From 182961454128b766cde78e8e5c83b78d91f217b3 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Mon, 31 Jan 2022 10:54:24 +0200 Subject: [PATCH] Issue #3261463: Switch from deprecated class VarbaseEntityDefinitionUpdateManager to EntityDefinitionUpdateManager --- varbase.install | 4 ++-- varbase.profile | 6 +++--- varbase.services.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/varbase.install b/varbase.install index b3bd07cc..09ac5c22 100644 --- a/varbase.install +++ b/varbase.install @@ -10,7 +10,7 @@ use Symfony\Component\Yaml\Yaml; use Drupal\Core\Config\InstallStorage; use Drupal\Core\Config\StorageInterface; use Drupal\Core\Config\FileStorage; -use Drupal\varbase\Entity\VarbaseEntityDefinitionUpdateManager; +use Vardot\Entity\EntityDefinitionUpdateManager; /** * Implements hook_install(). @@ -46,7 +46,7 @@ function varbase_install() { // Entity updates to clear up any mismatched entity and/or field definitions // And Fix changes were detected in the entity type and field definitions. \Drupal::classResolver() - ->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class) + ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class) ->applyUpdates(); // Full flash and clear cash and rebuilding newly created routes. diff --git a/varbase.profile b/varbase.profile index 8bf34ed3..347f9bfc 100644 --- a/varbase.profile +++ b/varbase.profile @@ -12,7 +12,7 @@ use Drupal\varbase\Config\ConfigBit; use Drupal\varbase\Form\ConfigureMultilingualForm; use Drupal\varbase\Form\AssemblerForm; use Drupal\varbase\Form\DevelopmentToolsAssemblerForm; -use Drupal\varbase\Entity\VarbaseEntityDefinitionUpdateManager; +use Vardot\Entity\EntityDefinitionUpdateManager; use Drupal\node\Entity\Node; use Drupal\path_alias\Entity\PathAlias; @@ -480,7 +480,7 @@ function varbase_configure_language_and_fetch_traslation($language_code) { function varbase_fix_entity_update($entity_update) { if ($entity_update) { \Drupal::classResolver() - ->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class) + ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class) ->applyUpdates(); } } @@ -569,7 +569,7 @@ function varbase_after_install_finished(array &$install_state) { // Entity updates to clear up any mismatched entity and/or field definitions // And Fix changes were detected in the entity type and field definitions. \Drupal::classResolver() - ->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class) + ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class) ->applyUpdates(); // Full flash and clear cash and rebuilding newly created routes. diff --git a/varbase.services.yml b/varbase.services.yml index 304e88f0..a8fee352 100644 --- a/varbase.services.yml +++ b/varbase.services.yml @@ -16,5 +16,5 @@ services: tags: - { name: "event_subscriber" } varbase.definition_update_manager: - class: '\Drupal\varbase\Entity\VarbaseEntityDefinitionUpdateManager' + class: '\Vardot\Entity\EntityDefinitionUpdateManager' arguments: ["@class_resolver"] -- GitLab