Created on 28 February 2024, 9 months ago

Problem/Motivation

When i upgraded to 10.2, and then there is an error

The "block" entity type did not specify a view_builder handler. (web/core/lib/Drupal/Core/Entity/EntityTypeManager.php line 259)

Steps to reproduce

install new module

Proposed resolution

replace blocache_entity_type_build to these function in blocache.module

function blocache_entity_type_alter(array &$entity_types) {
    // Change the view_builder handler of the block entity.
    $entity_types['block']->setViewBuilderClass('Drupal\blocache\BlocacheViewBuilder');
}

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇳China robbin.zhao

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024