| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | class EnvBarSiteConfigExtension extends DataExtension |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Add override column to SiteConfig db record. |
||
| 24 | * |
||
| 25 | * @var string[] |
||
| 26 | */ |
||
| 27 | private static $db = [ |
||
|
|
|||
| 28 | 'EnvBarOverride' => 'Boolean', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Add Checkbox field for override value to new Environment Indicator tab |
||
| 33 | * in CMS Settings. |
||
| 34 | * |
||
| 35 | * @param FieldList $fields |
||
| 36 | * @return void |
||
| 37 | * @throws BadMethodCallException |
||
| 38 | */ |
||
| 39 | public function updateCMSFields(FieldList $fields) |
||
| 49 |