Get the Block API plugin system for Drupal 8 in your Drupal 7 developments.

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


custom block

AttachmentSize
custom_block.jpg353.57 KB

Project information

Releases