/**
  * Gets fields used in the cms
  * @return {FieldList} Fields to be used
  */
 public function getCMSFields()
 {
     $fields = new FieldList(new TabSet('Root', new Tab('Main', _t('KapostObject.MAIN', '_Main'), new ReadonlyField('Created', $this->fieldLabel('Created')), new ReadonlyField('KapostChangeTypeNice', $this->fieldLabel('KapostChangeType')), new ReadonlyField('KapostAuthor', $this->fieldLabel('KapostAuthor')), new ReadonlyField('ToPublishNice', $this->fieldLabel('ToPublish')), new ReadonlyField('ClassNameNice', _t('KapostObject.CONTENT_TYPE', '_Content Type')), new ReadonlyField('Title', $this->fieldLabel('Title')), HtmlEditorField_Readonly::create('ContentNice', $this->fieldLabel('Content'), $this->sanitizeHTML($this->Content)))));
     //Allow extensions to adjust the fields
     $this->extend('updateCMSFields', $fields);
     return $fields;
 }
 /**
  * @return HtmlEditorField_Readonly
  */
 public function performReadonlyTransformation()
 {
     $field = new HtmlEditorField_Readonly($this->name, $this->title, $this->value);
     $field->setForm($this->form);
     $field->dontEscape = true;
     return $field;
 }