Loading
Issue #3598358: Drupal 12 compatibility
Closes #3598358.
- Allow Drupal 12 in
core_version_requirement(flag_fse, flag_fse_og) and composer.json. - Move hooks to OOP hooks (
Drupal\flag_fse\Hook\FlagFseHooks), with#[LegacyHook]wrappers for Drupal < 11.1. - Use PHP attributes for the Action and EntityReferenceSelection plugins.
- Add a
FlagFseSourceattribute;FlagFseSourceManagersupports attribute discovery (annotations kept for BC). FlagFseAction::execute()now matchesExecutableInterface::execute(?object $object)(fatal on Drupal 12 otherwise).- PHPUnit doc-comment annotations converted to attributes; functional tests run in separate processes.
Unlike the bot patch, this avoids the duplicate view_mode key and updates the info.yml files. All 25 tests pass locally on Drupal 11.3.