Skip to main content
backdrop Documentation
Documentation and API source code for Backdrop CMS.
  • Welcome!
    • Login

Search for contexts

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
Layout::$contexts property core/modules/layout/includes/layout.class.inc An array of LayoutContext instances used by this menu item.
Block::setContexts function core/modules/layout/includes/block.class.inc Set the contexts for this block.
Layout::getContexts function core/modules/layout/includes/layout.class.inc Return all contexts (from both the layout and menu item) for this Layout.
Layout::hasContexts function core/modules/layout/includes/layout.class.inc Check if the layout has a context of a particular name.
Layout::setContexts function core/modules/layout/includes/layout.class.inc Set the internally stored contexts.
Layout::resetContexts function core/modules/layout/includes/layout.class.inc Reset the internally stored contexts.
Layout::clearContexts function core/modules/layout/includes/layout.class.inc Clear a stored context.
LayoutMenuItem::$contexts property core/modules/layout/includes/layout_menu_item.class.inc An array of LayoutContext instances used by this menu item.
Layout::getContextsByType function core/modules/layout/includes/layout.class.inc Return an array of contexts filtered by types specified.
LayoutAccess::setContexts function core/modules/layout/plugins/access/layout_access.inc Sets the contexts for this item from the full list of layout contexts.
Block::getRequiredContexts function core/modules/layout/includes/block.class.inc Get a list of all required context plugin names for this block.
LayoutMenuItem::getContexts function core/modules/layout/includes/layout_menu_item.class.inc Get all contexts required or configured for this menu path.
LayoutMenuItem::hasContexts function core/modules/layout/includes/layout_menu_item.class.inc Check if the menu item has a context of a particular name.
layout_set_handler_contexts function core/modules/layout/layout.module Helper function for setting contexts on a layout handler.
layout_contexts_form_element function core/modules/layout/layout.admin.inc Partial form to generate a select list for selecting context.
LayoutMenuItem::resetContexts function core/modules/layout/includes/layout_menu_item.class.inc Reset the internally stored contexts.
LayoutAccess::getRequiredContexts function core/modules/layout/plugins/access/layout_access.inc Get a list of all context plugin names required for this access check.
LayoutInterfaceTest::testContexts function core/modules/layout/tests/layout.test Test the support for contexts within conditions and blocks.
layout_block_has_required_contexts function core/modules/layout/layout.module Determine if a block has the necessary contexts.
Layout::getContextsFromRelationships function core/modules/layout/includes/layout.class.inc Load the contexts based on this Layout's relationship configuration.

Directory

  • Getting started
    • Installing
    • Updates vs upgrades
    • Hosting/deploying
  • Upgrading from Drupal
    • Introduction
    • Upgrade overview
    • Converting Drupal code
  • User guide
    • Quick start guide
    • Using Backdrop
  • Add-On Documentation
  • Developing for Backdrop
    • Developing modules
    • Developing themes
    • Developing layouts
    • Using libraries
    • Local development
    • Writing secure code
    • Using JavaScript
  • Contributors guide
    • Contribute to Backdrop core
      • How to use the core issue queue
      • Adding labels to issues
      • Adding milestones to issues
    • Contribute Backdrop add-ons
    • Contribute to documentation
  • Developer API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Icon API
    • Database API
    • Theme functions
    • Form API reference
  • Appendix/reference
    • Change records
    • Glossary
    • Coding & documentation standards
    • Contrib permissions policy

Stay connected

Sign up for our newsletter

Powered by Backdrop CMS

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org