- Issue created by @Grimreaper
Hi,
I am currently opening a D11 branch for https://www.drupal.org/project/sobki_profile_bootstrap → .
On a fresh install, when executing Config Inspector, I obtain the following fatal error:
Symfony\Component\Validator\Exception\LogicException: The LangcodeRequiredIfTranslatableValues constraint is applied to 'core.entity_view_display.block_content.layout.default::entity_view_mode_restriction_per_role'. This constraint can only operate on the root object being validated. in Drupal\Core\Config\Plugin\Validation\Constraint\LangcodeRequiredIfTranslatableValuesConstraintValidator->validate() (line 27 of core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php).
langcode: en
status: true
dependencies:
config:
- block_content.type.layout
- field.field.block_content.layout.layout_builder__layout
module:
- layout_builder
- layout_builder_restrictions
third_party_settings:
layout_builder:
enabled: true
allow_custom: true
layout_builder_restrictions:
allowed_block_categories: { }
entity_view_mode_restriction:
allowed_layouts: { }
denylisted_blocks: { }
allowlisted_blocks: { }
restricted_categories: { }
entity_view_mode_restriction_per_role:
layout_restriction: all
allowed_layouts:
layout_onecol:
content_editor: '0'
webmaster: '0'
site_builder: '0'
administrator: '0'
...
override_defaults: false
id: block_content.layout.default
targetEntityType: block_content
bundle: layout
mode: default
content: { }
hidden:
langcode: true
layout_builder__layout: true
I think I will have the same error on other config with entity_view_mode_restriction_per_role, it is just the first one found alphabetically.
I have not found anything in layout_builder_restrictions_by_role or layout_builder_restrictions that will attach such validation so I guess with D11 upgrade some automatic config schema validation had been added by Core but at the wrong level. I don't know if Core issue or layout_builder_restrictions_by_role issue.
Active
1.0
Code