private function moveOrginalFields(Form $form)
    {
        $originalFieldset = $form->getElement('front_fieldset');
        $targetFieldset   = $form->getElement('elasticsuite_catalog_attribute_fieldset');

        foreach ($this->movedFields as $elementId) {
            $element = $form->getElement($elementId);
            if ($element) {
                $originalFieldset->removeField($elementId);
                $targetFieldset->addElement($element);
            }
        }

        $filterableFieldNote = __('Can be used only with catalog input type Text field, Dropdown, Multiple Select and Price.');
        if ($form->getElement('is_filterable')) {
            $form->getElement('is_filterable')->addData(['note' => $filterableFieldNote]);
        }

        if ($form->getElement('is_filterable_in_search')) {
            $form->getElement('is_filterable_in_search')->addData(['note' => $filterableFieldNote]);
        }

        return $this;
    }
private function moveOrginalFields(Form $form)
    {
        $originalFieldset = $form->getElement('front_fieldset');
        $targetFieldset   = $form->getElement('elasticsuite_catalog_attribute_fieldset');

        foreach ($this->movedFields as $elementId) {
            $element = $form->getElement($elementId);
            if ($element) {
                $originalFieldset->removeField($elementId);
                $targetFieldset->addElement($element);
            }
        }

        $filterableFieldNote = __('Can be used only with catalog input type Text field, Dropdown, Multiple Select and Price.');
        if ($form->getElement('is_filterable')) {
            $form->getElement('is_filterable')->addData(['note' => $filterableFieldNote]);
        }

        if ($form->getElement('is_filterable_in_search')) {
            $form->getElement('is_filterable_in_search')->addData(['note' => $filterableFieldNote]);
        }

        return $this;
    }
private function moveOrginalFields ( Form $ form ) { $ originalFieldset = $ form -> getElement ( 'front_fieldset' ) ; $ targetFieldset = $ form -> getElement ( 'elasticsuite_catalog_attribute_fieldset' ) ; foreach ( $ this -> movedFields as $ elementId ) { $ element = $ form -> getElement ( $ elementId ) ; if ( $ element ) { $ originalFieldset -> removeField ( $ elementId ) ; $ targetFieldset -> addElement ( $ element ) ; } } $ filterableFieldNote = __ ( 'Can be used only with catalog input type Text field, Dropdown, Multiple Select and Price.' ) ; if ( $ form -> getElement ( 'is_filterable' ) ) { $ form -> getElement ( 'is_filterable' ) -> addData ( [ 'note' => $ filterableFieldNote ] ) ; } if ( $ form -> getElement ( 'is_filterable_in_search' ) ) { $ form -> getElement ( 'is_filterable_in_search' ) -> addData ( [ 'note' => $ filterableFieldNote ] ) ; } return $ this ; }
Move original fields to the new fieldset.

@param Form $form Form

@return FrontPlugin
Move original fields to the new fieldset .