App\Http\Controllers\User\UserController::showAdditionField PHP Method

showAdditionField() public method

public showAdditionField ( $field )
    public function showAdditionField($field)
    {
        $dynamicField = app('xe.dynamicField');
        $fieldType = $dynamicField->get('user', $field);
        $user = $this->user;
        /** @var SkinHandler $skinHandler */
        $skinHandler = app('xe.skin');
        $skin = $skinHandler->getAssigned('member/settings');
        $id = $field;
        $view = $skin->setView('show-field')->setData(compact('user', 'fieldType', 'id'))->render();
        return XePresenter::makeApi(['result' => (string) $view, 'data' => compact('id'), 'XE_ASSET_LOAD' => ['css' => \Xpressengine\Presenter\Html\Tags\CSSFile::getFileList(), 'js' => \Xpressengine\Presenter\Html\Tags\JSFile::getFileList()]]);
    }