Skip to content

Instantly share code, notes, and snippets.

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

What a lifesaver.

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