Resolver
class Resolver (View source)
Generic resolver for DataObjects
Methods
public static
resolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)
No description
public static
baseResolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)
Just the basic ViewableData field accessor bit, without all the property mapping overhead. Useful for custom dataobject types that circumvent the model layer.
public static
mixed|null
Details
static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null
resolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)
No description
static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null
baseResolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)
Just the basic ViewableData field accessor bit, without all the property mapping overhead. Useful for custom dataobject types that circumvent the model layer.
static mixed|null
getResolvedField($obj, string $fieldName, SchemaConfig $config)
No description