plugin/path/Manager/PathManager.php
public function exportStep(Step $step)
    {
        $parent = $step->getParent();
        $activity = $step->getActivity();

        $data = [
            'uid' => $step->getId(),
            'parent' => !empty($parent) ? $parent->getId() : null,
            'activityId' => !empty($activity) ? $activity->getId() : null,
            'activityNodeId' => !empty($activity) ? $activity->getResourceNode()->getId() : null,
            'order' => $step->getOrder(),
        ];

        return $data;
    }
public function exportStep(Step $step)
    {
        $parent = $step->getParent();
        $activity = $step->getActivity();

        $data = [
            'uid' => $step->getId(),
            'parent' => !empty($parent) ? $parent->getId() : null,
            'activityId' => !empty($activity) ? $activity->getId() : null,
            'activityNodeId' => !empty($activity) ? $activity->getResourceNode()->getId() : null,
            'order' => $step->getOrder(),
        ];

        return $data;
    }
public function exportStep ( Step $ step ) { $ parent = $ step -> getParent ( ) ; $ activity = $ step -> getActivity ( ) ; $ data = [ 'uid' => $ step -> getId ( ) , 'parent' => ! empty ( $ parent ) ? $ parent -> getId ( ) : null , 'activityId' => ! empty ( $ activity ) ? $ activity -> getId ( ) : null , 'activityNodeId' => ! empty ( $ activity ) ? $ activity -> getResourceNode ( ) -> getId ( ) : null , 'order' => $ step -> getOrder ( ) , ] ; return $ data ; }
Transform Step data to export it.

@param Step $step

@return array
Transform Step data to export it .