0

I was wondering how do you create custom layouts for Panelizer in D8? In D7, I can easily create my layouts, and just add a couple of lines on my .info file to let Drupal know where my layouts are.

I created a custom module following a "How to create custom layouts using Layout Builder tutorial". Can I just change the dependencies in the info.yml file that's inside my custom layout module like this:

name: 'Custom Layout'
type: module
description: 'Provides a way for layout'
core: 8.x
package: 'Custom'
dependencies:
  - panelizer:panelizer

Thanks!

2

Panelizer is based on Panels module, which uses Layout API module in Drupal Core for providing layout plugins. Please refer to the relevant documentation:

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.