/** * get edit form type * * @return string */ public function getEditFormType() { if ($this->getAttribute()->getData('editor')) { return 'editor'; } return parent::getEditFormType(); }