- Issue created by @pdureau
- Assigned to pdureau
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Looking forward to an MR to review! π€
- π«π·France pdureau Paris
If you wish, you can have a look on an existing and well tested implementation of this interface for SDC plugin manager: https://git.drupalcode.org/project/ui_patterns/-/blob/2.0.x/src/Componen...
- Merge request !9631Implement CategorizingPluginManagerInterface for ComponentPluginManager. β (Open) created by vensires
- π¬π·Greece vensires
Implemented the changes required in the MR. Please review.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
One test failed:
There was 1 failure: 1) Drupal\Tests\layout_builder\Functional\LayoutSectionTest::testLayoutSectionFormatterAccess Behat\Mink\Exception\ResponseTextException: The text "Hello test world" was not found anywhere in the text of the current page. /builds/issue/drupal-3474533/vendor/behat/mink/src/WebAssert.php:907 /builds/issue/drupal-3474533/vendor/behat/mink/src/WebAssert.php:293 /builds/issue/drupal-3474533/core/tests/Drupal/Tests/WebAssert.php:979 /builds/issue/drupal-3474533/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php:311 /builds/issue/drupal-3474533/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php:210
- First commit to issue fork.
- Issue was unassigned.
- Status changed to Needs review
2 months ago 11:13am 19 November 2024 - π¬π§United Kingdom longwave UK
Rebased, LayoutSectionTest passed locally for me so perhaps an unrelated random fail, let's see what happens on CI.
- π¬π§United Kingdom longwave UK
Alternatively why can't we just add
category
as the trait requires, and copy it fromgroup
with a default? See MR!10245. - π¬π§United Kingdom longwave UK
#14 is not doable, we need a translatable string but you can't call
t()
ornew TranslatableMarkup
when initialising a class property.Fixed PHPStan, the baseline addition will be removed in π Fix PHPStan L1 errors "Call to method getDefinitions()/getSortedDefinitions() on an unknown class Drupal\Core\Plugin\CategorizingPluginManagerTrait." Needs work
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Ah, good point, @longwave! This is the most pragmatic approach, then :)
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
One question on the MR about the phpstan baseline changes - if someone can confirm they're needed.
Fine to self RTBC afterwards
- π¬π§United Kingdom longwave UK
See #17, the problem is in the trait, PHPStan doesn't catch it if you run it on the file alone - not sure why.
Alternatively if we land π Fix PHPStan L1 errors "Call to method getDefinitions()/getSortedDefinitions() on an unknown class Drupal\Core\Plugin\CategorizingPluginManagerTrait." Needs work first then the baseline changes can be removed.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
larowlan β changed the visibility of the branch 3474533-componentpluginmanager-must-implement to hidden.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Credits
Rerolled after π Fix PHPStan L1 errors "Call to method getDefinitions()/getSortedDefinitions() on an unknown class Drupal\Core\Plugin\CategorizingPluginManagerTrait." Needs work , only removed the baseline changes, if it comes back green will commit
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x - thanks!
-
larowlan β
committed 7b5bb6fd on 11.x
Issue #3474533 by longwave, vensires, larowlan, pdureau, wim leers:...
-
larowlan β
committed 7b5bb6fd on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.