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

# yamlPublisherPageTemplateToDeclarativeV2()

- 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/to/yamlPublisherEntityToDeclarativeV2.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).
> 

Converts a v2 page template as code to the stored page template.

**Signature:**

```typescript
export declare function yamlPublisherPageTemplateToDeclarativeV2(input: AacPublisherPageTemplateV2, errorContext?: IErrorContext): DeclarativePublisherPageTemplateV2;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| input | [AacPublisherPageTemplateV2](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.aacpublisherpagetemplatev2/index.md) |  |
| errorContext | [IErrorContext](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.ierrorcontext/index.md) | _(Optional)_ |

**Returns:**

[DeclarativePublisherPageTemplateV2](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.declarativepublisherpagetemplatev2/index.md)
