Get a field definition error when adding a new field to a block

Created on 18 June 2025, about 2 months ago

Problem/Motivation

Steps to reproduce

  1. Install lingotek
  2. Go to add a Block type
  3. Add a new field to the block
  4. See the following error
  5. AssertionError: "language_key_value" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 183 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).
    Drupal\Core\Field\FieldTypePluginManager->getGroupedDefinitions() (Line: 131)
    Drupal\field_ui\Form\FieldStorageAddForm->processFieldDefinitions() (Line: 80)
    Drupal\field_ui\Form\FieldStorageAddForm->buildForm()
    call_user_func_array() (Line: 528)
    Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 279)
    Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
    Drupal\Core\Controller\FormController->getContentResult()
    call_user_func_array() (Line: 123)

Proposed resolution

Add a category definition for the Language Key / Value field following https://www.drupal.org/node/3375748

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

11.0

Component

Code

Created by

🇦🇷Argentina camvertiz

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