function _hashtags_get_entity_type_label in Hashtags 8
Get entity type label by entity type id.
Parameters
$entity_type:
3 calls to _hashtags_get_entity_type_label()
- ConfirmDeleteForm::getQuestion in src/
Form/ ConfirmDeleteForm.php - Returns the question to ask the user.
- ManagerForm::addField in src/
Form/ ManagerForm.php - ManagerForm::buildForm in src/
Form/ ManagerForm.php - Form constructor.
File
- ./
hashtags.module, line 350
Code
function _hashtags_get_entity_type_label($entity_type) {
return \Drupal::entityTypeManager()
->getStorage($entity_type)
->getEntityType()
->getLabel();
}