public function SettingTrait::getValueList in Fasttoggle 8.2
Get a list of actual values for the setting, in the order used.
Keys should match those returned for the list of human readable labels.
Return value
array An array of the actual values for the field, with keys matching those returned by getHumanReadableValueList.
2 calls to SettingTrait::getValueList()
- SettingTrait::nextValue in src/
Plugin/ Setting/ SettingTrait.php - Move to the next setting value.
- SettingTrait::previousValue in src/
Plugin/ Setting/ SettingTrait.php - Move to the previous setting value and save it.
1 method overrides SettingTrait::getValueList()
- NodeListField::getValueList in src/
Plugin/ Setting/ NodeListField.php - Get a list of actual values for the setting, in the order used.
File
- src/
Plugin/ Setting/ SettingTrait.php, line 268 - Fasttoggle Object List of Values Setting
Class
- SettingTrait
- Abstract interface for settings.
Namespace
Drupal\fasttoggle\Plugin\SettingCode
public function getValueList() {
$labels = $this->labels;
return array_keys($labels[FASTTOGGLE_LABEL_ACTION]);
}