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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mattlt created an issue. See original summary.

skorzh’s picture

Hi mattlt, this is actually a very good idea, thanks!

maxilein’s picture

Hi,

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!

skorzh’s picture

Hi 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.

swim’s picture

Status: Active » Needs review
FileSize
7.38 KB

Lovely 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.

skorzh’s picture

Great swim! Thanks for your help, will review it soon.
Testing/reviewing from someone also will be appreciated too.

andypost’s picture

A bit of clean-up. Only 8.3 has both modules so no reason to point version

PS: using this patch found no issues

ilclaudio’s picture

Hi,
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)

andypost’s picture

You need to enable core module *layout_discovery*

ilclaudio’s picture

ah! ok thank you

swim’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Needs review » Fixed

Thank 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.