function custom_block_entity_bundle_info

Implements hook_entity_bundle_info().

File

drupal/core/modules/block/custom_block/custom_block.module, line 165
Allows the creaation of custom blocks through the user interface.

Code

function custom_block_entity_bundle_info() {
  $bundles = array();
  foreach (config_get_storage_names_with_prefix('custom_block.type.') as $config_name) {
    $config = config($config_name);
    $bundles['custom_block'][$config
      ->get('id')]['label'] = $config
      ->get('label');
  }
  return $bundles;
}