October CMS backend list's column get array key value
<p>Hi I'm new to October cms . I have defined the below shown method in my model class. The method is also used to show the select options in the backend form. This method returns an array where the key is a value similar to a field value in db.  I have defined the method as static because it is also recommended in the front end where I get the function and process it with db record and iterate it to show the value of the array that matches the key. It all works fine. Thing is in my columns.yaml file, how do I list the method's array value which matches the db record as I did in front end.</p>

<pre><code>public static function getSampleOptions()
{
    return[
          '1'=&gt;'Sample1',
          '2'=&gt;'Sample2'
          ];
}
</code></pre>