LB extractor plugin does not check if block_content is enabled

Created on 20 July 2025, about 1 month ago

Problem/Motivation

In LbFieldExtractor::create()

<?php
  $instance->blockStorage = $container->get('entity_type.manager')?->getStorage('block_content');
?>

which fails if block_content module is not enabled

Steps to reproduce (required for bugs, but not feature requests)

Enable the following modules:

* Layout builder
* AI translate
* Content translation

Go to node//translate and try to translate a node

This results in error

Proposed resolution

Wrap assignment with try/catch, mark plugin as unusable if block_content is not enabled

🐛 Bug report
Status

Active

Version

1.2

Component

AI Translate

Created by

🇧🇬Bulgaria valthebald Sofia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024