CustomSettings); $content = (isset($customSettings['Content'])) ? $customSettings['Content'] : ''; $textAreaField = new TextareaField( $this->getSettingName('Content'), "HTML", $content ); $textAreaField->setRows(4); $textAreaField->setColumns(20); return new FieldList( $textAreaField, new CheckboxField( $this->getSettingName('HideFromReports'), _t('EditableLiteralField.HIDEFROMREPORT', 'Hide from reports?'), $this->getSetting('HideFromReports') ) ); } public function getFormField() { return new LiteralField("LiteralField[$this->ID]", "
". $this->getSetting('Content') ."
". "
" ); } public function showInReports() { return (!$this->getSetting('HideFromReports')); } }