Needs review
Project:
Plugin
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 May 2026 at 15:54 UTC
Updated:
12 May 2026 at 21:14 UTC
Jump to comment: Most recent
On Drupal 12 the plugin module is broken. We can update code in preparation as this code works on both Drupal 11 and Drupal 12.
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
Comment #2
alexpottComment #5
joachim commentedShouldn't this use DeprecationHelper?
Comment #6
berdirI'm not very fond of the DeprecationHelper, I don't find it very readable, but the float based check certainly is pretty unusual, I usually do a version_compare().
Comment #7
alexpottChanged to version_compare...
Personally I find the (float) thing way more readable and easier to parse in my head as it uses a comparison operator against the version while version_compare you are comparing against a 0 which is wierd.