Ad Schellevis a6b0827716 mvc: extract grid field data from form definition file, for https://github.com/opnsense/core/issues/8187
Perform some small cleanups in ControllerBase and add method to extract grid fields, sample config data:

     <field>
         <id>sysctl.value</id>
         <label>Value</label>
         <type>text</type>
         <grid_view>
             <sequence>2</sequence>
         </grid_view>
     </field>

Which results in the following output:

        (
            [sequence] => 2
            [visible] => false
            [ignore] => false
            [sortable] => false
            [width] =>
            [label] => Value
            [id] => sysctl.value
            [type] => text
            [fieldname] => value
        )
2025-01-06 21:46:08 +01:00
..
2024-08-27 12:20:39 +02:00
2024-02-22 17:02:06 +01:00