mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Make SubsiteDomain#getCMSFields extendable
This commit is contained in:
parent
6fb36eab9f
commit
b7f1c66de7
@ -26,10 +26,12 @@ class SubsiteDomain extends DataObject {
|
||||
}
|
||||
|
||||
public function getCMSFields() {
|
||||
return new FieldList(
|
||||
$fields = new FieldList(
|
||||
new TextField('Domain', $this->fieldLabel('Domain'), null, 255),
|
||||
new CheckboxField('IsPrimary', $this->fieldLabel('IsPrimary'))
|
||||
);
|
||||
$this->extend('updateCMSFields', $fields);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
public function fieldLabels($includerelations = true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user