mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02: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() {
|
public function getCMSFields() {
|
||||||
return new FieldList(
|
$fields = new FieldList(
|
||||||
new TextField('Domain', $this->fieldLabel('Domain'), null, 255),
|
new TextField('Domain', $this->fieldLabel('Domain'), null, 255),
|
||||||
new CheckboxField('IsPrimary', $this->fieldLabel('IsPrimary'))
|
new CheckboxField('IsPrimary', $this->fieldLabel('IsPrimary'))
|
||||||
);
|
);
|
||||||
|
$this->extend('updateCMSFields', $fields);
|
||||||
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fieldLabels($includerelations = true) {
|
public function fieldLabels($includerelations = true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user