You are here

Example: Block in Examples for Developers 8

Same name and namespace in other branches
  1. 6 block_example/block_example.module \block_example
  2. 7 block_example/block_example.module \block_example
  3. 3.x modules/block_example/block_example.module \block_example

Demonstrates code creation of blocks.

This example demonstrates how a module can define blocks that can be displayed on various pages of a site, and how to alter blocks provided by other modules.

Parent topics

File

block_example/block_example.module, line 10
Module file for block_example.

Functions

Classes

Namesort descending Location Description
BlockExampleMenuTest block_example/tests/src/Functional/BlockExampleMenuTest.php Test the user-facing menus in Block Example.
BlockExampleTest block_example/tests/src/Functional/BlockExampleTest.php Test the configuration options and block created by Block Example module.