public function initForm() { if (!isset($this->fieldConfig['class'])) { $this->fieldConfig['class'] = ActiveField::className(); } parent::initForm(); }