interface ContextProvider (View source)

A class that can store a generic array of context

Methods

public
array
provideContext()

Should return key/value pairs that will merge into a separate query context

public static 
mixed
get(array $context)

Get the value out of the graphql context array

Details

array provideContext()

Should return key/value pairs that will merge into a separate query context

Return Value

array

static mixed get(array $context)

Get the value out of the graphql context array

Parameters

array $context

Return Value

mixed