lib/Core/StructBuilder/LayoutStructBuilder.php
public function newLayoutCopyStruct(?Layout $layout = null): LayoutCopyStruct
    {
        $layoutCopyStruct = new LayoutCopyStruct();

        if (!$layout instanceof Layout) {
            return $layoutCopyStruct;
        }

        $layoutCopyStruct->name = $layout->getName() . ' (copy)';

        return $layoutCopyStruct;
    }
public function newLayoutCopyStruct(?Layout $layout = null): LayoutCopyStruct
    {
        $layoutCopyStruct = new LayoutCopyStruct();

        if (!$layout instanceof Layout) {
            return $layoutCopyStruct;
        }

        $layoutCopyStruct->name = $layout->getName() . ' (copy)';

        return $layoutCopyStruct;
    }
public function newLayoutCopyStruct ( ? Layout $ layout = null ) : LayoutCopyStruct { $ layoutCopyStruct = new LayoutCopyStruct ( ) ; if ( ! $ layout instanceof Layout ) { return $ layoutCopyStruct ; } $ layoutCopyStruct -> name = $ layout -> getName ( ) . ' (copy)' ; return $ layoutCopyStruct ; }
Creates a new layout copy struct.

If the layout is provided, initial data is copied from the layout.
Creates a new layout copy struct .