Problem/Motivation
Modules that want to modify the layout when one section is removed may have a hard time, because there's no way to retrieve the layout plugin object. Contrib needs access to the plugin object so it can save configuration for it.
Proposed resolution
Add public getters for retrieving the layout and section, like we already did for the block configuration form in #3003666: Provide access to a Section or SectionComponent from within a $form_state and #3044117: Add getter for layout object in Layout Builder's ConfigureSectionForm
Remaining tasks
User interface changes
N/A
API changes
no
Data model changes
no
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | expose-section-storage-remove-form-3202335-1.patch | 720 bytes | istryker |
Issue fork drupal-3202335
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
istryker commentedComment #7
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
public function getSectionStorage() { should be typehinted
Also will need test coverage
Thanks