Skip to content

The layouts module is generating inconsistent output #232

@sunerphey

Description

@sunerphey

Other modules like ui_patterns_(views|fieldgroup|ds) are setting "#multiple_sources" to TRUE in the render array, while the layouts module does not. In the same time having multiple entity fields pointing to a single pattern field is a valid and well used option. Having different render array gives the potential of errors in the implementation of the patterns as the developer may have assumptions of the data type. For example I have run into an implementation that assumed array of renderable items as it was used initially with the layouts module, but it ultimately failed when I tried to use the pattern from the views module.
However I can see a problem with backwards compatibility from implementations that also made some assumptions if we simply just try to set "#multiple_sources" to TRUE in the layouts module.<
I personally don't see much benefit of the multiple_sources feature as there look to be cleaner ways of achieving its purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions