Problem/Motivation

While editing a block and going to create a new field, or editing an existing Coloris field, an error is thrown:

TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup, string returned in Drupal\Core\Field\FieldTypeCategory->getDescription() (line 26 of core/lib/Drupal/Core/Field/FieldTypeCategory.php).

Steps to reproduce

  1. Install Coloris 1.0.2
  2. Enable Coloris module
  3. Manage fields of a block type (e.g. "Basic Block")
  4. Click "Create a new Field" button

Proposed resolution

Add a description to the FieldType and FieldWidget annotations.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Issue fork coloris-3410952

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bapXIV created an issue. See original summary.

bapXIV’s picture

Attaching a patch that resolves this.

sidharth_soman’s picture

Status: Active » Needs review
StatusFileSize
new553 bytes

This patch solves the issue

svenryen’s picture

Status: Needs review » Fixed

Thanks for contributing!

svenryen’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.