ContextInterface
interface ContextInterface (View source)
Provides data and definitions for plugins during runtime and administration.
Plugin contexts are satisfied by ContextInterface implementing objects. These objects always contain a definition of what data they will provide during runtime. During run time, ContextInterface implementing objects must also provide the corresponding data value.
Methods
Gets the context value.
Returns whether the context has a value.
Gets the provided definition that the context must conform to.
Gets a list of validation constraints.
Validates the set context value.
Details
mixed
getContextValue()
Gets the context value.
bool
hasContextValue()
Returns whether the context has a value.
ContextDefinitionInterface
getContextDefinition()
Gets the provided definition that the context must conform to.
array
getConstraints()
Gets a list of validation constraints.
ConstraintViolationListInterface
validate()
Validates the set context value.