Skip to content

Commit

Permalink
Added updateCMSFields extend
Browse files Browse the repository at this point in the history
  • Loading branch information
gorriecoe authored Sep 26, 2016
1 parent 7df7ab5 commit aeb1f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/models/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Section extends DataObject implements PermissionProvider
* @return FieldList
*/
public function getCMSFields() {
return new FieldList(
$fields = new FieldList(
$rootTab = new TabSet(
"Root",
$tabMain = new Tab(
Expand Down Expand Up @@ -100,6 +100,8 @@ public function getCMSFields() {
)
)
);
$this->extend('updateCMSFields', $fields);
return $fields;
}

/**
Expand Down

0 comments on commit aeb1f77

Please sign in to comment.