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

Search for context

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
Layout::getContextsByType function core/modules/layout/includes/layout.class.inc Return an array of contexts filtered by types specified.
Example: Contextual Links group modules/examples/contextual_links_example/contextual_links_example.module This example demonstrates how to implement contextual links.
EntityLayoutContext::type function core/modules/layout/plugins/context/entity_layout_context_handler.inc Return the indicator for this context, i.e. "entity", "string".
LayoutContextBroken::type function core/modules/layout/plugins/context/layout_context.inc Return the indicator for this context, i.e. "entity", "string".
LayoutStringContext::type function core/modules/layout/plugins/context/layout_context.inc Return the indicator for this context, i.e. "entity", "string".
LayoutAccess::setContexts function core/modules/layout/plugins/access/layout_access.inc Sets the contexts for this item from the full list of layout contexts.
views_add_contextual_links function core/modules/views/views.module Adds contextual links associated with a view display to a renderable array.
Block::getRequiredContexts function core/modules/layout/includes/block.class.inc Get a list of all required context plugin names for this block.
layout_layout_context_info function core/modules/layout/includes/layout.layout.inc Implements hook_layout_context_info().
layout_context_return_form function core/modules/layout/layout.context.admin.inc Helper function to return a partial context or relationship settings form.
EntityLayoutContext::label function core/modules/layout/plugins/context/entity_layout_context_handler.inc Assemble a human-readable label of this object.
LayoutContext::__construct function core/modules/layout/plugins/context/layout_context.inc Constructor for LayoutContext objects.
LayoutContextBroken::label function core/modules/layout/plugins/context/layout_context.inc Assemble a human-readable label of this object.
LayoutOverridesPathContext class core/modules/layout/plugins/context/layout_context.inc Pass-through context used when an unknown argument is encountered.
LayoutStringContext::label function core/modules/layout/plugins/context/layout_context.inc Assemble a human-readable label of this object.
layout_current_user_context function core/modules/layout/layout.module Returns the current user account context, which is always available.
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.
contextual_pre_render_links function core/modules/contextual/contextual.module Pre-render callback: Builds a renderable array for contextual links.
LayoutContext::formValidate function core/modules/layout/plugins/context/layout_context.inc Validate handler for the settings form for this context item.
layout_set_handler_contexts function core/modules/layout/layout.module Helper function for setting contexts on a layout handler.
DashboardLayoutContext::type function core/modules/dashboard/includes/dashboard_layout_context.inc Return the indicator for this context.
layout_contexts_form_element function core/modules/layout/layout.admin.inc Partial form to generate a select list for selecting context.
dashboard_layout_context.inc file core/modules/dashboard/includes/dashboard_layout_context.inc Layout context handler for entities.
taxonomy_layout_context_info function core/modules/taxonomy/taxonomy.module Implements hook_layout_context_info().
DashboardLayoutContext::label function core/modules/dashboard/includes/dashboard_layout_context.inc Assemble a human-readable label of this object.
dashboard_layout_context_info function core/modules/dashboard/dashboard.module Implements hook_layout_context_info().
LayoutMenuItem::resetContexts function core/modules/layout/includes/layout_menu_item.class.inc Reset the internally stored contexts.
LayoutContext::USAGE_TYPE_ALL constant core/modules/layout/plugins/context/layout_context.inc All possible context types.
contextual_links_example.test file modules/examples/contextual_links_example/tests/contextual_links_example.test Functional tests for the contextual_links_example module.
contextual_links_example_menu function modules/examples/contextual_links_example/contextual_links_example.module Implements hook_menu().
contextual_links_example.info file modules/examples/contextual_links_example/contextual_links_example.info name = Contextual Links Example description = Demonstrates how to use contextual links to enhance the user experience. package = Example modules version = BACKDROP_VERSION backdrop = 1.x type = module
ContextualLinksExampleTestCase class modules/examples/contextual_links_example/tests/contextual_links_example.test Functional tests for the contextual_links_example module.
layout_context_add_form_cancel function core/modules/layout/layout.context.admin.inc Submit handler for the cancel button on layout_context_add_form().
layout_context_add_form_submit function core/modules/layout/layout.context.admin.inc Submit handler for layout_context_add_form().
LayoutContext::USAGE_TYPE_MENU constant core/modules/layout/plugins/context/layout_context.inc Declares a LayoutContext to be provided based on a menu item or path.
LayoutRelationship::getContext function core/modules/layout/plugins/relationships/layout_relationship.inc Get the context from this relationship.
LayoutContext::getAdminSummary function core/modules/layout/plugins/context/layout_context.inc Return a summary for this context.
BackdropDiffFormatter::context function core/includes/diff.inc
contextual_links_overview_page function modules/examples/contextual_links_example/contextual_links_example.module Menu callback; displays a listing of objects defined by this module.
contextual_links_example_theme function modules/examples/contextual_links_example/contextual_links_example.module Implements hook_theme().
EntityLayoutContext::formSubmit function core/modules/layout/plugins/context/entity_layout_context_handler.inc Submit handler for the settings form for this context item.
layout_context_required_by_path function core/modules/layout/layout.module Given a path with placeholders (%), determine the required contexts.
contextual_links_example.module file modules/examples/contextual_links_example/contextual_links_example.module Hooks implementations for the Contextual Links Example module.
ContextualDynamicContextTestCase class core/modules/contextual/tests/contextual.test Tests accessible links after inaccessible links on dynamic context.
hook_contextual_links_view_alter function core/modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
layout_settings_form_context_add function core/modules/layout/layout.context.admin.inc Submit handler for layout_settings_form() that lets the user add a context or relationship.
layout_context_add_form_validate function core/modules/layout/layout.context.admin.inc Validation handler for layout_context_add_form().
LayoutContext::USAGE_TYPE_CUSTOM constant core/modules/layout/plugins/context/layout_context.inc Declares a LayoutContext to be a manually specified custom context.
LayoutContext::USAGE_TYPE_SYSTEM constant core/modules/layout/plugins/context/layout_context.inc Declares a LayoutContext to be a system-wide context

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4
  • next ›
  • last »

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