src/Entity/XiboLayout.php
public function copy($name, $description, $copyMediaFiles)
    {
        $this->name = $name;
        $this->description = $description;
        $this->copyMediaFiles = $copyMediaFiles;
        $this->getLogger()->info('Copy Layout ID ' . $this->layoutId);
        $response = $this->doPost('/layout/copy/' . $this->layoutId, $this->toArray());
        
        $this->getLogger()->debug('Passing the response to Hydrate');
        $layout = $this->constructLayoutFromResponse($response);

        return $layout;
    }
public function copy($name, $description, $copyMediaFiles)
    {
        $this->name = $name;
        $this->description = $description;
        $this->copyMediaFiles = $copyMediaFiles;
        $this->getLogger()->info('Copy Layout ID ' . $this->layoutId);
        $response = $this->doPost('/layout/copy/' . $this->layoutId, $this->toArray());
        
        $this->getLogger()->debug('Passing the response to Hydrate');
        $layout = $this->constructLayoutFromResponse($response);

        return $layout;
    }
public function copy ( $ name , $ description , $ copyMediaFiles ) { $ this -> name = $ name ; $ this -> description = $ description ; $ this -> copyMediaFiles = $ copyMediaFiles ; $ this -> getLogger ( ) -> info ( 'Copy Layout ID ' . $ this -> layoutId ) ; $ response = $ this -> doPost ( '/layout/copy/' . $ this -> layoutId , $ this -> toArray ( ) ) ; $ this -> getLogger ( ) -> debug ( 'Passing the response to Hydrate' ) ; $ layout = $ this -> constructLayoutFromResponse ( $ response ) ; return $ layout ; }
Copy the layout.

@param string $name Name of the copied layout
@param string $description Description of the copied layout
@param int $copyMediaFiles Flag indicating whether to make copies of all media files assigned to the layout being copied
@return XiboLayout
Copy the layout .