Forked from vivianspencer/gist:656c8eee367f44e4742192c7e56e39f8
Created
October 1, 2018 07:01
-
-
Save slivorezka/5bb45acbe623eacf668a5e8757bb6090 to your computer and use it in GitHub Desktop.
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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment