Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The panels block configuration forms don't expose the block entity itself, but that information might be useful to a person altering the form.
Proposed resolution
Add a addBlock
method to the PanelsBlockConfigureFormBase class.
Remaining tasks
- Review patch
- Commit
- Rejoice
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#5 | panels-get_block_in_edit_form-2923939-4.patch | 712 bytes | drclaw |
|
Comments
Comment #2
drclaw CreditAttribution: drclaw at Fuse Interactive commentedComment #3
drclaw CreditAttribution: drclaw at Fuse Interactive commentedActually I think the method name of
getEntity
might be better as it matches the similar method on the Block form.Comment #4
drclaw CreditAttribution: drclaw at Fuse Interactive commentedUpdate the issue summary
Comment #5
drclaw CreditAttribution: drclaw at Fuse Interactive commentedNope, had it right the first time. The block is a block plugin, not an entity... :|
Comment #6
berliner CreditAttribution: berliner commentedPatch applies properly and does what is expected. Definitely a +1 for the DX.
Comment #7
japerry