lib/Core/StructBuilder/LayoutStructBuilder.php
public function newLayoutUpdateStruct(?Layout $layout = null): LayoutUpdateStruct
    {
        $layoutUpdateStruct = new LayoutUpdateStruct();

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

        $layoutUpdateStruct->name = $layout->getName();
        $layoutUpdateStruct->description = $layout->getDescription();

        return $layoutUpdateStruct;
    }
public function newLayoutUpdateStruct(?Layout $layout = null): LayoutUpdateStruct
    {
        $layoutUpdateStruct = new LayoutUpdateStruct();

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

        $layoutUpdateStruct->name = $layout->getName();
        $layoutUpdateStruct->description = $layout->getDescription();

        return $layoutUpdateStruct;
    }
public function newLayoutUpdateStruct ( ? Layout $ layout = null ) : LayoutUpdateStruct { $ layoutUpdateStruct = new LayoutUpdateStruct ( ) ; if ( ! $ layout instanceof Layout ) { return $ layoutUpdateStruct ; } $ layoutUpdateStruct -> name = $ layout -> getName ( ) ; $ layoutUpdateStruct -> description = $ layout -> getDescription ( ) ; return $ layoutUpdateStruct ; }
Creates a new layout update struct.

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