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

Search for getContext

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
Layout::getContexts function core/modules/layout/includes/layout.class.inc Return all contexts (from both the layout and menu item) for this Layout.
Layout::getContextsByType function core/modules/layout/includes/layout.class.inc Return an array of contexts filtered by types specified.
LayoutMenuItem::getContexts function core/modules/layout/includes/layout_menu_item.class.inc Get all contexts required or configured for this menu path.
LayoutRelationship::getContext function core/modules/layout/plugins/relationships/layout_relationship.inc Get the context from this relationship.
Layout::getContextFromRelationship function core/modules/layout/includes/layout.class.inc
Layout::getContextsFromRelationships function core/modules/layout/includes/layout.class.inc Load the contexts based on this Layout's relationship configuration.
LayoutRelationshipBroken::getContext function core/modules/layout/plugins/relationships/layout_relationship.inc Get the context from this relationship.
LayoutRelationshipAuthorFromNode::getContext function core/modules/layout/plugins/relationships/author_from_node.inc Get the context from this relationship.

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