So in my form controller I have a field like
status:
label: Blog Post Status
type: dropdown
with the function
public function getStatusOptions($keyValue = null)
{
return [
0 => "All",
1 => "None"
];
}
defined in it’s associated model. In the columns.yaml file when I use
status:
label: Blog Post Status
type: dropdown
it shows the value in list as 0, 1 than All, None. How do I get to show the key instead?
Update: Added screenshots for more detail
So this is what the form controller shows (which is completely fine):

And this is my list controller, which should actually show All (since I chose All in last screenshot), instead it shows the value 0...

Last updated