public function processEditAction()
 {
     $entityClass = $this->entityName;
     $modelPk = $entityClass::getEntity()->getPrimary();
     $className = $this->getEntityShortName();
     $currentView = $this->getCurrentViewType();
     switch ($currentView) {
         case HelperWidget::EDIT_HELPER:
             $id = isset($this->data[$modelPk]) ? $this->data[$modelPk] : false;
             $codeType = $this->getCode() . '_TEXT_TYPE';
             $bxCode = $this->getCode() . '_' . $className;
             $bxCodeType = $codeType . '_' . $className;
             if ($this->forceMultiple and $id) {
                 $bxCode .= '_' . $id;
                 $bxCodeType .= '_' . $id;
             }
             if (!$_REQUEST[$bxCode] && $this->getSettings('REQUIRED') == true) {
                 $this->addError('REQUIRED_FIELD_ERROR');
             }
             $this->data[$this->code] = $_REQUEST[$bxCode];
             $this->data[$codeType] = $_REQUEST[$bxCodeType];
             break;
         case HelperWidget::LIST_HELPER:
         default:
             parent::processEditAction();
             break;
     }
 }
 /**
  * @inheritdoc
  */
 protected function getValueReadonly()
 {
     return $this->getContentType() == static::CONTENT_TYPE_HTML ? $this->data[$this->code] : parent::getValueReadOnly();
 }