src/Sulu/Component/Content/Import/WebspaceImport.php
protected function getSetterValue($key, $value)
    {
        if (empty($value)) {
            return;
        }

        switch ($key) {
            case 'redirectTarget':
                $value = $this->documentManager->find($value);
                break;
            case 'permissions':
                $value = json_decode($value, true);
                break;
            case 'navigationContexts':
                $value = json_decode($value);
                break;
        }

        return $value;
    }
protected function getSetterValue($key, $value)
    {
        if (empty($value)) {
            return;
        }

        switch ($key) {
            case 'redirectTarget':
                $value = $this->documentManager->find($value);
                break;
            case 'permissions':
                $value = json_decode($value, true);
                break;
            case 'navigationContexts':
                $value = json_decode($value);
                break;
        }

        return $value;
    }
protected function getSetterValue ( $ key , $ value ) { if ( empty ( $ value ) ) { return ; } switch ( $ key ) { case 'redirectTarget' : $ value = $ this -> documentManager -> find ( $ value ) ; break ; case 'permissions' : $ value = json_decode ( $ value , true ) ; break ; case 'navigationContexts' : $ value = json_decode ( $ value ) ; break ; } return $ value ; }
Prepare the settings value for the respective setter.

@param $key
@param $value

@return mixed|object

@throws DocumentManagerException
Prepare the settings value for the respective setter .