addElement('text', 'title', ['label' => 'Title', 'required' => true]); $this->addElement( 'extendedImage', 'icon', [ 'label' => 'Icon', 'required' => true, 'resize' => $this->getConfigArray('imageSize'), ] ); $this->addElement('select', 'type', [ 'label' => 'Type', 'required' => true, 'multiOptions' => ['' => 'Select One'] + (array) $this->getConfigArray('types'), ]); $this->addElement('htmlEditor', 'content', [ 'label' => 'Content', 'hasMsWordNote' => true, ]); $this->addElement('checkbox', 'enabled', ['label' => 'Show on user end', 'decoration' => 'simple']); return parent::_initElements(); } }