Overview
--------------------------
Get the Block API plugin system for Drupal 8 in your Drupal 7 developments.
Using this module, developers will be able to create block in a similar
way as in D8.
Installation
--------------------------
1. Copy the entire plug_block directory the Drupal sites/all/modules
directory or use Drush.
2. Login as an administrator. Enable the module on the Modules page.
Use Drush command: drush en plug_block
Usage
--------------------------
Define Block plugin like Drupal 8 Plugin API:
https://www.drupal.org/developing/api/8/block_api
You can view implement in module plug_block_example.
Also a video demo how to use Plug Block: http://bit.ly/plug_block
Plug Block allow you a interesting feature that you can easy create custom Block outside module and easy copy paste across multi website.
Steps to create global blocks:
- create folder plugins in folder sites/all
- create a namespace folder, example: Company
- create folder Plugin/Block
- create a php class file with Drupal 8 Block API plugin
- clear cache, now you can see new Block on your admin/structure/block
Attachment | Size |
---|---|
custom_block.jpg | 353.57 KB |
Project information
- Module categories: Content Editing Experience, Content Display, Developer Tools
- Created by zipme_hkt on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 22 Jul 2016 at 11:18 UTC