> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# publisherPageLayoutDefinitionToYaml()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/from/declarativePublisherDocumentToYaml.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

A reusable page. Its body is written at the top level, because the object it is already names it - a page written into a document names itself instead.

**Signature:**

```typescript
export declare function publisherPageLayoutDefinitionToYaml(layout: IPublisherPageTemplateV1 | IPublisherPageTemplateDefinitionV1): {
    content: string;
    json: ReportPageLayout;
};
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| layout | [IPublisherPageTemplateV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherpagetemplatev1/index.md) \| [IPublisherPageTemplateDefinitionV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherpagetemplatedefinitionv1/index.md) |  |

**Returns:**

{ content: string; json: ReportPageLayout; }
