- Issue created by @seanr
- πΊπΈUnited States seanr
LOL, I really didn't get very far with this - going to need some help from folks who understand this stuff far better than I and it's also not clear it actually belongs in this model rather than context itself:
/** * Update node type conditions from node_type to entity_bundle. */ function context_active_trail_update_8001(): void { foreach (Drupal::service('context.manager')->getContexts() as $context) { foreach ($context->getConditions() as $condition) { if ($condition['id'] === 'node_type') { $condition['id'] = 'entity_bundle:node'; } } } drupal_flush_all_caches(); }
- πΊπΈUnited States seanr
Indeed, looks like the solution is over here: π Provide upgrade path for "node_type" condition RTBC .