thrownew\Exception(sprintf('Invalid or empty entity type definition for %s module. Do a full cache clear via admin/config/development/performance or drush cr.',$plugin->dependency()));
// message, instead of letting Core give a confusing exception later.
thrownew\Exception(sprintf('Invalid or empty %s entity type definition for %s module. Do a full cache clear via admin/config/development/performance or drush cr.',$bundle_id,$plugin->dependency()));