function paragraphs_type_get_names

File

paragraphs/paragraphs.module, line 44
Contains paragraphs.module

Code

function paragraphs_type_get_names() {
  return array_map(function ($bundle_info) {
    return $bundle_info['label'];
  }, \Drupal::service('entity_type.bundle.info')
    ->getBundleInfo('paragraphs_type'));
}