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...

Command icon 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

zen1995 created an issue. See original summary.

zen1995’s picture

Assigned: zen1995 » Unassigned
Status: Active » Needs review
p4trizio’s picture

I 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.'

andypost’s picture

Version: 8.x-4.0-rc2 » 8.x-4.x-dev
Status: Needs review » Needs work

yes, it needs the same fix for page

andypost’s picture

Issue tags: -drupal10 +Drupal 10 compatibility
andypost’s picture

Issue summary: View changes
Status: Needs work » Needs review

Updated IS as hook_post_update_NAME()should be used for config

Also added update for pages

andypost’s picture

Title: The "node_type" plugin does not exist - Drupal 10 » [Drupal 10] The "node_type" plugin does not exist

joelpittet made their first commit to this issue’s fork.

  • joelpittet committed bed4103c on 8.x-4.x authored by zen1995
    Issue #3398407: [Drupal 10] The "node_type" plugin does not exist
    
joelpittet’s picture

Thank you @andypost, I've merged this for a new release shortly

joelpittet’s picture

joelpittet’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.