public function make_form(&$form) { $form = parent::make_form($form); $form->addField(coreFormElementsLibrary::get('text', 'title')); $form->addField(coreFormElementsLibrary::get('rich_editor', 'text')); $form->addField(coreFormElementsLibrary::get('date', 'published')->addClass('form-control')); $form->addField(coreFormElementsLibrary::get('checkbox', 'active')); $image_field = coreFormElementsLibrary::get('image', 'image'); $image_field->setEntityName($this->getName()); $image_field->setEntityId($this->id); $image_field->setWidth('100%'); $form->addField($image_field); return $form; }