Problem/Motivation
Currently, it does not seem possible to enable layout builder for an existing content type via a recipe.
Using setThirdPartySettings on the default view display seems to have no effect.
This will be needed for Drupal CMS as we decided to use layout builder enabled view modes and even overrides.
Steps to reproduce
Try to create a recipe that sets up layout builder for the page content type
Proposed resolution
By marking some of the methods in LayoutBuilderEntityViewDisplay as action methods, this should become possible.
Comments
Comment #2
phenaproximaLayoutBuilderEntityViewDisplay has three methods (enableLayoutBuilder, disableLayoutBuilder, and setOverridable) that should be exposed as config actions for this purpose. That's easy - three-line change, plus test coverage.
Comment #3
phenaproximaComment #5
thejimbirch commentedThis looks good, but tests are failing. I believe unrelated as this has no tests.
Speaking of which, does this need tests?
Comment #6
thejimbirch commentedI am unable to rerun the pipeline.
Comment #7
phenaproximaComment #8
thejimbirch commentedTests were added and Mr tests pass. Marking as rtbc.
Comment #9
alexpottCommitted and pushed 524cf737ec1 to 11.x and 6d5a320db6c to 11.1.x. Thanks!
Comment #12
thejimbirch commentedNeeds change record and documentation issue follow up.
Thanks for the merge!
Comment #15
thejimbirch commented