Hello,

I am reading multiversion code to be able to help on integrations like #2756417: Integration with the Paragraphs module.

In multiversion_entity_type_alter() in multiversion.module there is a special case for the block content entity type.

if (isset($entity_types['block_content']) && $manager->isEnabledEntityType($entity_types['block_content'])) {
    $entity_types['block']->setHandlerClass('storage', 'Drupal\multiversion\Entity\Storage\Sql\BlockStorage');
  }

Why is it separated from the switch case of default enabled entity types? And why is it:

$entity_types['block']->setHandlerClass

instead of:

$entity_types['block_content']->setHandlerClass

?

Thanks for any help.

Comments

Grimreaper created an issue.