Bachir Soussi Chiadmi 7b9de31a42 footer elements are almost displayed 7 years ago
..
modules 7b9de31a42 footer elements are almost displayed 7 years ago
src 7b9de31a42 footer elements are almost displayed 7 years ago
.editorconfig 7b9de31a42 footer elements are almost displayed 7 years ago
.gitignore 7b9de31a42 footer elements are almost displayed 7 years ago
.travis.yml 7b9de31a42 footer elements are almost displayed 7 years ago
CHANGELOG.md 7b9de31a42 footer elements are almost displayed 7 years ago
CONTRIBUTING.md 7b9de31a42 footer elements are almost displayed 7 years ago
LICENSE 7b9de31a42 footer elements are almost displayed 7 years ago
LICENSE.txt 7b9de31a42 footer elements are almost displayed 7 years ago
README.md 7b9de31a42 footer elements are almost displayed 7 years ago
composer.json 7b9de31a42 footer elements are almost displayed 7 years ago
context.info.yml 7b9de31a42 footer elements are almost displayed 7 years ago
context.install 7b9de31a42 footer elements are almost displayed 7 years ago
context.module 7b9de31a42 footer elements are almost displayed 7 years ago
context.routing.yml 7b9de31a42 footer elements are almost displayed 7 years ago
context.services.yml 7b9de31a42 footer elements are almost displayed 7 years ago

README.md

Context

The context module lets you define conditions for when certain reactions should take place.

An example of a condition could be when viewing a certain node type and blocks should be placed as a reaction when viewing a page with this node type.

###Good resources

Conditions

Context for Drupal 8 uses the built in condition plugins supplied by Drupal through the Plugin API. So any conditional plug-ins supplied by other modules can also be used with context.

Reactions

Reactions for the context module are defined trough the new Drupal 8 Plugin API.

The context module defines a plugin type named Context Reaction that you can extend when creating your own plugins.

A context reaction requires a configuration form and execute method. The execution of the plugin is also something that will have to be handled by the author of the reaction.