Skip to content
Snippets Groups Projects
paulocs's avatar
Issue #3280556 by paulocs, lucassc: Why does Context UI module create a menu...
Paulo Henrique Cota Starling authored
Issue #3280556 by paulocs, lucassc: Why does Context UI module create a menu link for each context you create?
86f2ca41
History

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Conditions
  • Reactions
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

Context allows you to manage contextual conditions and reactions for different portions of your site. You can think of each context as representing a "section" of your site. For each context, you can choose the conditions that trigger this context to be active and choose different aspects of Drupal that should react to this active context.

REQUIREMENTS

This module requires no modules outside of Drupal core.

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.

INSTALLATION

CONFIGURATION

1. Navigate to Administration > Extend and enable the module and the
   submodule Context UI.
2. Navigate to Administration > Structure > Context to associate menus,
   views, blocks, etc. with different contexts.
3. Select "Add context" to add general details for a new context. Save.
4. Add conditions. When there are no added conditions the context will be
   considered sitewide.
5. Add reactions.
6. Save and continue.

MAINTAINERS

Current maintainers:

Supporting organizations: