- Merge request !1446Make sure context_mapping information is stored in BlockBase::submitConfigurationForm β (Closed) created by rlmumford
- Merge request !1447Issue #3251378 by rlmumford: Make sure context mapping gets stored in BlockPluginTrait. β (Closed) created by rlmumford
- First commit to issue fork.
- πͺπΈSpain vidorado LogroΓ±o (La Rioja)
vidorado β changed the visibility of the branch 11.x to hidden.
- πͺπΈSpain vidorado LogroΓ±o (La Rioja)
vidorado β changed the visibility of the branch 3251378-8.9.x to hidden.
- πͺπΈSpain vidorado LogroΓ±o (La Rioja)
vidorado β changed the visibility of the branch 3251378-block-plugins-dont to hidden.
- Merge request !10924Issue #3251378: Block Plugins don't store their context mappings on submit β (Closed) created by vidorado
- πͺπΈSpain vidorado LogroΓ±o (La Rioja)
Added a Kernel test to test the new behavior.
- πΊπΈUnited States smustgrave
Left comments on MR for consistency
If you are another contributor eager to jump in, please allow the previous poster at least 48 hours to respond to feedback first, so they have the opportunity to finish what they started!
- πͺπΈSpain vidorado LogroΓ±o (La Rioja)
@smustgrave, I've applied your two suggestions and left a reply to your third MR comment of what I think @rlmumford pretended to do.
Thanks!
- πΊπΈUnited States smustgrave
Leaving the 1 thread open but rest of the feedback appears to be addressed
- Issue was unassigned.
- Status changed to RTBC
4 months ago 2:30am 15 April 2025 - π¬π§United Kingdom catch
I kind of wondered if we want functional test coverage for this to show what actually breaks (which I am not clear about to be honest), but the kernel test is pretty clear.
Committed/pushed to 11.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
21 days ago 7:22pm 18 July 2025 - πΊπΈUnited States douggreen Winchester, VA
This should have a change record because now any overrides of BlockBase::submitConfigurationForm() require the void typehint.
- π¦πΊAustralia acbramley
Yeah just hit #27 when hunting down phpunit failures on 11.2
PHP Fatal error: Declaration of Drupal\entity_hierarchy_microsite\Plugin\MicrositePluginTrait::submitConfigurationForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\Core\Block\BlockBase::submitConfigurationForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state): void in /data/app/modules/contrib/entity_hierarchy/modules/entity_hierarchy_microsite/src/Plugin/MicrositePluginTrait.php on line 90
- π©πͺGermany Harlor Berlin
Example in contrib: https://www.drupal.org/project/spa/issues/3526733#comment-16203161 β¨ Allow to set an aria-label on the iframe element Active (comment #8)
I'm wondering if we should specify the return type when there is no return type on the interface in this case PluginFormInterface yet.
- π¦πΊAustralia acbramley
@harlor see π Remove return type from BlockBase::submitConfigurationForm Active , we are reverting the return type.