Drupal 8 Get allowed values of field
This file contains 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
|$values = FieldConfig::loadByName('node', 'BUNDLE', 'FIELD')->getSetting('allowed_values');|
Dec 21, 2018
for me too. Thank you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
What a lifesaver.