Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Drupal 8 Get allowed values of field
$values = FieldConfig::loadByName('node', 'BUNDLE', 'FIELD')->getSetting('allowed_values');
Copy link

What a lifesaver.

Copy link

avinash2209 commented 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