Create Entity bundles programmatically
There is more easy way to do this: Use the module functions.

paragraphs.module contain these functions:


paragraphs_bundle_save()  to create and update bundles
paragraphs_bundle_delete() to remove bundles
paragraphs_bundle_load() to get the list of bundles or load a bundle




/**
 * Implements hook_install().
 */
function MYMODULE_install() {
  // Create new Bundle.
  $bundle = new stdClass();
  $bundle-&gt;name = 'Test Bundle'; // user friendly label
  $bundle-&gt;bundle = 'paragraphy_test'; // machine name
  $bundle-&gt;locked = 0;
  $status = paragraphs_bundle_save($bundle);
}