On this page
Example Plugins
Last updated on
6 December 2018
The tests directory has a module which demonstrates how to build your own plugins tests/modules/block_style_plugins_test.
Example Block Style plugins can be found in the tests directory:
PHP plugins
tests/modules/block_style_plugins_test/src/Plugin/BlockStyle/SimpleClass.php
tests/modules/block_style_plugins_test/src/Plugin/BlockStyle/DropdownWithInclude.php
tests/modules/block_style_plugins_test/src/Plugin/BlockStyle/CheckboxWithExclude.php
Plugins declared via Yaml
Also, check out the example Yaml file for easily declaring plugins at:
tests/modules/block_style_plugins_test/block_style_plugins_test.blockstyle.yml
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion