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.
The layout_discovery module has been introduced into core as an experimental module. Panels and Panelizer have created new branches that drop support of layout_plugin in favor of layout_discovery.
Might be a good idea to open a new branch that does the same to help with testing?
Thanks,
•• matt
Comment | File | Size | Author |
---|---|---|---|
#7 | 2858935-support-layout-discovery-7.patch | 8.07 KB | andypost |
#7 | interdiff.txt | 2.2 KB | andypost |
#5 | 2858935-support-layout-discovery.patch | 7.38 KB | swim |
Comments
Comment #2
skorzhHi mattlt, this is actually a very good idea, thanks!
Comment #3
maxilein CreditAttribution: maxilein commentedHi,
any progress on this?
D 8.3 is out using the new plugin.
Still using the layout plugin instead of the discovery plugin has become a show stopper.
thanks!
Comment #4
skorzhHi Mat, sorry for delay, unfortunately have not enough time to work on it right now, but I'm happy to review and apply patches if anybody can help with it.
Comment #5
swim CreditAttribution: swim commentedLovely module & idea for exposed filter theming. Please find a patch attached which removes support for layout plugin and adds support for layout discovery. Additionally, some minor refactoring done to the vefl helper class should make writing tests more approachable.
As already stated above, this should go into a 8.x-2.x branch due to the removal of layout plugin.
Comment #6
skorzhGreat swim! Thanks for your help, will review it soon.
Testing/reviewing from someone also will be appreciated too.
Comment #7
andypostA bit of clean-up. Only 8.3 has both modules so no reason to point version
PS: using this patch found no issues
Comment #8
ilclaudio CreditAttribution: ilclaudio commentedHi,
after apllying the patch #7 I've this error:
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "vefl.layout" has a dependency on a non-existent service "plugin.manager.core.layout". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences() (line 58 of /var/www/macchinece/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences(Array) (Line: 42)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processDefinition(Object) (Line: 36)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->process(Object) (Line: 104)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 598)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1299)
Drupal\Core\DrupalKernel->compileContainer() (Line: 883)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 465)
Drupal\Core\DrupalKernel->boot() (Line: 655)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment #9
andypostYou need to enable core module *layout_discovery*
Comment #10
ilclaudio CreditAttribution: ilclaudio commentedah! ok thank you
Comment #11
swim CreditAttribution: swim commentedThank you andypost, skorzh and mattlt!
This issue has been resolved and a new branch for vefl which supports layout discovery has been published. Please see, https://www.drupal.org/project/vefl/releases/8.x-2.x-dev.
Now this is sorted a nice to have would be testsss =D.