Skip to content

Un-deprecate assembleLayout(), or abstract assembleLayoutFromPost() #9676

Discussion options

You must be logged in to vote

Craft already has a built-in way to serialize a field layout into a portable, JSON-encodable array (FieldLayout::getConfig()), and a way to unserialize those arrays back into FieldLayout models (FieldLayout::createFromConfig()). They’re both used for storing field layouts in the project config, but could apply to other use cases as well.

The main reason assembleLayout() has been deprecated is because it doesn’t support any of the new field layout features that were added in Craft 3.5. If it weren’t for that, I wouldn’t have any problem continuing to support it even if only for plugins’ sake.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Comment options

You must be logged in to vote
2 replies
@brandonkelly
Comment options

@engram-design
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
extensibility 🔌 features related to plugin/module dev
2 participants