public function updateInputConcepts(array $conceptsArray, $action)
    {
        $data['inputs'] = [];

        foreach ($conceptsArray as $inputId => $inputConcepts) {
            $input = [];
            $input['id'] = (string)$inputId;
            $input['data'] = [];
            $input['data'] = $this->addImageConcepts($input['data'], $inputConcepts);

            $data['inputs'][] = $input;
        }
        $data['action'] = $action;

        $updateResult = $this->getRequest()->request(
            'PATCH',
            $this->getRequestUrl('inputs'),
            $data
        );

        return $this->getInputsFromResult($updateResult);
    }
public function updateInputConcepts(array $conceptsArray, $action)
    {
        $data['inputs'] = [];

        foreach ($conceptsArray as $inputId => $inputConcepts) {
            $input = [];
            $input['id'] = (string)$inputId;
            $input['data'] = [];
            $input['data'] = $this->addImageConcepts($input['data'], $inputConcepts);

            $data['inputs'][] = $input;
        }
        $data['action'] = $action;

        $updateResult = $this->getRequest()->request(
            'PATCH',
            $this->getRequestUrl('inputs'),
            $data
        );

        return $this->getInputsFromResult($updateResult);
    }
public function updateInputConcepts ( array $ conceptsArray , $ action ) { $ data [ 'inputs' ] = [ ] ; foreach ( $ conceptsArray as $ inputId => $ inputConcepts ) { $ input = [ ] ; $ input [ 'id' ] = ( string ) $ inputId ; $ input [ 'data' ] = [ ] ; $ input [ 'data' ] = $ this -> addImageConcepts ( $ input [ 'data' ] , $ inputConcepts ) ; $ data [ 'inputs' ] [ ] = $ input ; } $ data [ 'action' ] = $ action ; $ updateResult = $ this -> getRequest ( ) -> request ( 'PATCH' , $ this -> getRequestUrl ( 'inputs' ) , $ data ) ; return $ this -> getInputsFromResult ( $ updateResult ) ; }
Common Input's Concepts Update Method

@param  array $conceptsArray
@param $action

@return array
Common Input s Concepts Update Method