src/Entity/XiboLayout.php
public function discard($layoutId)
    {
        $this->getLogger()->info('Discarding draft of layout ID ' . $layoutId);
        $response = $this->doPut('/layout/discard/' . $layoutId);

        $layout = $this->constructLayoutFromResponse($response);

        $this->getLogger()->debug('LayoutId is now: ' . $layout->layoutId);

        return $layout;
    }
public function discard($layoutId)
    {
        $this->getLogger()->info('Discarding draft of layout ID ' . $layoutId);
        $response = $this->doPut('/layout/discard/' . $layoutId);

        $layout = $this->constructLayoutFromResponse($response);

        $this->getLogger()->debug('LayoutId is now: ' . $layout->layoutId);

        return $layout;
    }
public function discard ( $ layoutId ) { $ this -> getLogger ( ) -> info ( 'Discarding draft of layout ID ' . $ layoutId ) ; $ response = $ this -> doPut ( '/layout/discard/' . $ layoutId ) ; $ layout = $ this -> constructLayoutFromResponse ( $ response ) ; $ this -> getLogger ( ) -> debug ( 'LayoutId is now: ' . $ layout -> layoutId ) ; return $ layout ; }
Discard a layouts draft
@param int layoutId The ID of the layout to checkout
@return XiboLayout
Discard a layouts draft