Layout plugin


This project is not covered by Drupal’s security advisory policy.

Allows modules or themes to register layouts by simply providing a YAML file and some templates, and for other modules to list the available layouts and render them.

This is an API module to hold the Drupal 8 plugin manager for layouts. On it's own, it doesn't do anything - you'll need to install a module which (1) uses layout plugins to render something, (2) provides some layouts or (3) both.

There are a couple sub-modules that do just that for example purposes:

  • Example layouts: It registers a few example layouts. You can use this for testing or as a demonstration for how to register your own layouts.

The goal is to have one layout plugin type that can be shared between multiple projects, for example, both Panels and Display Suite use layouts registered with Layout Plugin.

We'd eventually like to see this merged into Drupal core: #2296423: Implement layout plugin type in core

Note: Block Page (with Layout plugin integration) is it's own project now, and not a sub-module.

How to register new layouts?

Check out our documentation on how to register new layouts!

This is how you make new layouts available to Display Suite and Panels, and any other module that uses Layout Plugin.

Modules that use Layout Plugin

  • Panels: Uses layouts from Layout Plugin to render pages, and provides a couple layouts of its own.
  • Display Suite: Uses layouts from Layout Plugin to render view modes, and provides a couple layouts of its own.
  • Radix Layouts: Provides a library of useful layouts based on the Bootstrap 3 grid system (used in Panopoly).
  • Bootstrap Layouts: Provides a library of useful layouts based on the Bootstrap 3 grid system.

Layout plugin项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。

项目分类:

周安装量: 
9918
维护状态: 
最低限度维护
开发状态: 
积极开发中

其他版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.0-alpha23tar.gz (18.9 KB) | zip (36.17 KB)2016年10月12日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.x-devtar.gz (18.91 KB) | zip (36.19 KB)2016年10月4日发布说明简 | 繁 | 更多