src/Controller/TypeController.php
protected function cleanUpRequestBodyForEdit(array &$request_body, UserInterface $user = null)
    {
        $this->cleanUpRequestBody($request_body, $user);

        if ($this->pool->isTypePolymorph($this->getTypeClassName()) && array_key_exists('type', $request_body)) {
            unset($request_body['type']);
        }
    }
protected function cleanUpRequestBodyForEdit(array &$request_body, UserInterface $user = null)
    {
        $this->cleanUpRequestBody($request_body, $user);

        if ($this->pool->isTypePolymorph($this->getTypeClassName()) && array_key_exists('type', $request_body)) {
            unset($request_body['type']);
        }
    }
protected function cleanUpRequestBodyForEdit ( array & $ request_body , UserInterface $ user = null ) { $ this -> cleanUpRequestBody ( $ request_body , $ user ) ; if ( $ this -> pool -> isTypePolymorph ( $ this -> getTypeClassName ( ) ) && array_key_exists ( 'type' , $ request_body ) ) { unset ( $ request_body [ 'type' ] ) ; } }
Perform request data clean-up before reqeust data is being used for edit action.

@param array              $request_body
@param UserInterface|null $user
Perform request data clean - up before reqeust data is being used for edit action .