Problem/Motivation
The "node_type" plugin is removed from the Drupal core: See https://www.drupal.org/node/2983299 #1932810: Add entity bundles condition plugin for entities with bundles and after upgrading from the old version of Drupal to the D10 the site starts throwing an error. I believe this issue occurs after upgrading from the old Drupal versions.
Proposed resolution
Add 2 hook_post_update_NAME() function to update all pages (access_conditions) and variants (selection_criteria), similar to what is done in the Pathauto module: https://git.drupalcode.org/project/pathauto/-/blob/8.x-1.12/pathauto.ins...
Issue fork page_manager-3398407
Show commands
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 #3
zen1995 commentedComment #4
p4trizio commentedI have the same issue.
The provided update function does not work in my case because it tries to fix only 'page_manager.page_variant.' configs.
In my case I had to change 'page_manager.page.'
Comment #5
andypostyes, it needs the same fix for page
Comment #6
andypostComment #7
andypostUpdated IS as
hook_post_update_NAME()should be used for configAlso added update for pages
Comment #8
andypostComment #11
joelpittetThank you @andypost, I've merged this for a new release shortly
Comment #12
joelpittetComment #13
joelpittet