Issue #3442636 Drupal 11 compatibility
Closes #3442636
Merge request reports
Activity
added 1 commit
- 4e92a3bb - Fix PHPCS, mark parameters with null default value as nullable.
added 1 commit
- 898ae7d4 - Fix OR operator in core version requirement.
After visiting /admin/structure/types/manage/article/fields/add-field page, I get Error 500:
TypeError: Cannot access offset of type Drupal\Core\StringTranslation\TranslatableMarkup in isset or empty in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 45 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
It works fine in D10.
Hi @gpietrzak,
Thank you for noticing this, apparently the tests are not covering adding the field type in the UI. I just removed the 'category' property, as it can't be a translated string, but 'general' category is not in use anywhere in core (the Link field type doesn't define a category, and I think that's equivalent to saying it's general).
At the same time, I switched from annotations to using attributes for the plugins (as it's already used everywhere in core). This is done in: ea4cff74
I also bumped the minimum core 10 version to 10.2, because the plugin attributes were introduced in 10.2 4adbea9d (I discussed this change with @joevagyok)
Please have a look again.
Edited by Péter Keszthelyi
reset approvals from @joevagyok by pushing to the branch
added 1 commit
- 4adbea9d - Increase core version requirement from 10 to 10.2.
Hi @keszthelyi, it looks good now, approved