Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
$bundle->type is not a dead cert. Some entity types can put the bundle name somewhere else. This is defined in the 'bundle keys' array of https://api.drupal.org/api/drupal/modules!system!system.api.php/function....
Comments
Comment #1
joachim CreditAttribution: joachim commentedBest thing is to use field_extract_bundle().
Comment #3
joachim CreditAttribution: joachim commented