skeeks\cms\relatedProperties\userPropertyTypes\UserPropertyTypeColor::renderForActiveForm PHP Method

renderForActiveForm() public method

public renderForActiveForm ( ) : ActiveField
return yii\widgets\ActiveField
    public function renderForActiveForm()
    {
        $field = parent::renderForActiveForm();
        $pluginOptions = ['showAlpha' => (bool) ($this->showAlpha === Cms::BOOL_Y), 'showInput' => (bool) ($this->showInput === Cms::BOOL_Y), 'showPalette' => (bool) ($this->showPalette === Cms::BOOL_Y)];
        $field->widget(ColorInput::className(), ['showDefaultPalette' => (bool) ($this->showDefaultPalette === Cms::BOOL_Y), 'useNative' => (bool) ($this->useNative === Cms::BOOL_Y), 'saveValueAs' => (string) $this->saveValueAs, 'pluginOptions' => $pluginOptions]);
        return $field;
    }