Does not work with drupal 10

Created on 28 November 2023, 12 months ago
Updated 21 February 2024, 9 months ago

Problem

Does not work with drupal 10, php 8.2.12

Steps to reproduce

Install drupal 10. Install only Custom Formatters.
Go to /admin/structure/formatters.
Page displays two empty lines of table with operation buttons and create 4 warnings: First one is
Warning: Undefined array key "" in Drupal\custom_formatters\FormatterListBuilder->buildRow() (line 70 of /home/tmmservices/subdomains/peter/modules/custom_formatters/src/FormatterListBuilder.php)

Delete empty lines. Warnings disappeared.

Click add Formatter. Page displayed options (Formatter preset...).

Click on any options created warning and error:

Warning: Undefined property: Drupal\Core\Config\ConfigManager::$ConfigManagerInterface in Drupal\custom_formatters\Entity\Formatter->getDependentEntities() (line 107 of /home/tmmservices/subdomains/peter/modules/custom_formatters/src/Entity/Formatter.php)

Error: Class name must be a valid object or a string in Drupal\custom_formatters\Entity\Formatter->getDependentEntities() (line 107 of /home/tmmservices/subdomains/peter/modules/custom_formatters/src/Entity/Formatter.php).

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇨🇦Canada psaleks

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024