getContextObject()
Overview
public any function getContextObject(
required string context
, boolean includeChildContexts = false
)
Returns the configured object(s) (if any) for the given context
Arguments
Name | Type | Required | Description |
---|---|---|---|
context | string | Yes | ID of the context whose configured object you wish to get |
includeChildContexts | boolean | No (default=false) | Whether or not to include child contexts - returns an array if true, a string if false |