Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save slivorezka/5bb45acbe623eacf668a5e8757bb6090 to your computer and use it in GitHub Desktop.
Save slivorezka/5bb45acbe623eacf668a5e8757bb6090 to your computer and use it in GitHub Desktop.
Drupal 8 Get allowed values of field
$values = FieldConfig::loadByName('node', 'BUNDLE', 'FIELD')->getSetting('allowed_values');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment