Skip to content
Snippets Groups Projects
Commit 18296145 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3261463: Switch from deprecated class...

Issue #3261463: Switch from deprecated class VarbaseEntityDefinitionUpdateManager  to EntityDefinitionUpdateManager
parent 2ef9d796
No related branches found
No related tags found
3 merge requests!24Issue #3301451: Composer is fixed to docroot folder Primary tabs View(active tab),!10Issue #3269421: Add exception messages for VLB automated testing step definitions,!9Issue #3266504: Update Automated Functional Testing Readme File
......@@ -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.
......
......@@ -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.
......
......@@ -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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment