Install
Works with Drupal: ^8 || ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Config Pages 8.x-2.22
Fix: Restore backward compatibility with Drupal < 11.1 (#3577600)
Version 2.20 migrated entity type and plugin definitions from annotations to PHP attributes. However, attribute-based discovery was not fuly supported in Drupal 10.X. On Drupal < 11.2, causing a fatal error on cache rebuild:
The Drupal\config_pages\Entity\ConfigPagesType class does not correspond to an entity type.
This release restores annotations alongside attributes in all affected files. On Drupal 10.2+, the attribute takes priority; on older versions, annotation discovery finds the fallback definition.
Affected files:
- ConfigPages (ContentEntityType)
- ConfigPagesType (ConfigEntityType)
- ConfigPagesBlock (Block)
- ConfigPagesValueAccess (Condition)
- Language (ConfigPagesContext)
- ConfigPagesReferenceFieldFormatter (FieldFormatter)
- CurrentContext (ViewsArgumentDefault)
Update instructions: Update the module and run drush cr. No database updates required.