Issue #2249723 by andrei.dincu: added hook_preprocess_HOOK and additional function to render bundles in entities settings