SilverStripe\GraphQL\Util\CaseInsensitiveFieldAccessor::getValue
Signature
public function getValue(ViewableData
$object,
string
$fieldName,
[array
$opts = ,
[boolean
$asObject = false]] )
Parameters
$object
—
SilverStripe\View\ViewableData
- The parent resolved object
$fieldName
—
string
- Name of the field/getter/method
$opts
—
array
- Map of which lookups to use (class constants to booleans).
Example: [ViewableDataCaseInsensitiveFieldMapper::HAS_METHOD => true]
$asObject
—
boolean
- If true, return the DBField instance instead of the scalar value.
Returns
- mixed
Defined by Interface
FieldAccessorInterface