You are here

function varbase_fix_entity_update in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7

Same name and namespace in other branches
  1. 8.8 varbase.profile \varbase_fix_entity_update()
  2. 8.4 varbase.profile \varbase_fix_entity_update()
  3. 8.5 varbase.profile \varbase_fix_entity_update()
  4. 8.6 varbase.profile \varbase_fix_entity_update()
  5. 9.0.x varbase.profile \varbase_fix_entity_update()

Batch function to fix entity updates to clear up any mismatched entity.

Entity and/or field definitions, The following changes were detected in the entity type and field definitions.

Parameters

string|array $entity_update: To entity update or not.

3 string references to 'varbase_fix_entity_update'
varbase_assemble_development_tools in ./varbase.profile
Batch job to assemble Varbase extra components.
varbase_assemble_extra_components in ./varbase.profile
Batch job to assemble Varbase extra components.
varbase_configure_multilingual in ./varbase.profile
Batch job to configure multilingual components.

File

./varbase.profile, line 398
Enables modules and site configuration for a Varbase site installation.

Code

function varbase_fix_entity_update($entity_update) {
  if ($entity_update) {
    \Drupal::classResolver()
      ->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class)
      ->applyUpdates();
  }
}