@@ -10,17 +10,17 @@ |
||
| 10 | 10 | class TaxonomyTermExtension extends DataExtension |
| 11 | 11 | { |
| 12 | 12 | |
| 13 | - private static $api_access = true; |
|
| 13 | + private static $api_access = true; |
|
| 14 | 14 | |
| 15 | - private static $belongs_many_many = array( |
|
| 16 | - 'Pages' => BasePage::class |
|
| 17 | - ); |
|
| 15 | + private static $belongs_many_many = array( |
|
| 16 | + 'Pages' => BasePage::class |
|
| 17 | + ); |
|
| 18 | 18 | |
| 19 | - public function updateCMSFields(FieldList $fields) |
|
| 20 | - { |
|
| 21 | - $pagesGridField = $fields->dataFieldByName('Pages'); |
|
| 22 | - if ($pagesGridField) { |
|
| 23 | - $pagesGridField->getConfig()->removeComponentsByType(GridFieldAddNewButton::class); |
|
| 24 | - } |
|
| 25 | - } |
|
| 19 | + public function updateCMSFields(FieldList $fields) |
|
| 20 | + { |
|
| 21 | + $pagesGridField = $fields->dataFieldByName('Pages'); |
|
| 22 | + if ($pagesGridField) { |
|
| 23 | + $pagesGridField->getConfig()->removeComponentsByType(GridFieldAddNewButton::class); |
|
| 24 | + } |
|
| 25 | + } |
|
| 26 | 26 | } |
@@ -6,18 +6,18 @@ |
||
| 6 | 6 | class CwpSiteSummaryExtension extends Extension |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Updates the modules used for the version label by: |
|
| 11 | - * - Removing SS Framework |
|
| 12 | - * - Adding CWP |
|
| 13 | - * - Relabelling SS CMS |
|
| 14 | - * |
|
| 15 | - * @param array $modules |
|
| 16 | - */ |
|
| 17 | - public function updateVersionModules(&$modules) |
|
| 18 | - { |
|
| 19 | - unset($modules['silverstripe/framework']); |
|
| 20 | - $modules = ['cwp/cwp' => 'CWP'] + $modules; |
|
| 21 | - $modules['silverstripe/cms'] = 'SilverStripe CMS'; |
|
| 22 | - } |
|
| 9 | + /** |
|
| 10 | + * Updates the modules used for the version label by: |
|
| 11 | + * - Removing SS Framework |
|
| 12 | + * - Adding CWP |
|
| 13 | + * - Relabelling SS CMS |
|
| 14 | + * |
|
| 15 | + * @param array $modules |
|
| 16 | + */ |
|
| 17 | + public function updateVersionModules(&$modules) |
|
| 18 | + { |
|
| 19 | + unset($modules['silverstripe/framework']); |
|
| 20 | + $modules = ['cwp/cwp' => 'CWP'] + $modules; |
|
| 21 | + $modules['silverstripe/cms'] = 'SilverStripe CMS'; |
|
| 22 | + } |
|
| 23 | 23 | } |