Last active
October 16, 2019 18:16
-
-
Save robdecker/f0442913d9405e193cac066ebb577dbe to your computer and use it in GitHub Desktop.
[How to get bundle label from entity] http://drupal.stackexchange.com/questions/187980/how-to-get-bundle-label-from-entity #d8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$bundle_label = \Drupal::entityTypeManager() | |
->getStorage('node_type') | |
->load($node->bundle()) | |
->label(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment