You are here

function _hashtags_get_bundle_label in Hashtags 8

Get bundle label by entity type id and bundle id.

Parameters

$entity_type:

$bundle:

2 calls to _hashtags_get_bundle_label()
ConfirmDeleteForm::getQuestion in src/Form/ConfirmDeleteForm.php
Returns the question to ask the user.
ManagerForm::addField in src/Form/ManagerForm.php

File

./hashtags.module, line 362

Code

function _hashtags_get_bundle_label($entity_type, $bundle) {
  return \Drupal::service("entity_type.bundle.info")
    ->getAllBundleInfo()[$entity_type][$bundle]['label'];
}