Copied!

FieldDefinitionMapper

FieldDefinitionMapper.php : 15

Maps a Field Definition to its GraphQL components.

Methods

publicmapToFieldDefinitionType()

FieldDefinitionMapper.php : 17
public mapToFieldDefinitionType(FieldDefinition $fieldDefinition) : string|null

Parameters

Name Type Default value Description
$fieldDefinition FieldDefinition - -

Return values

string|null

publicmapToFieldValueArgsBuilder()

FieldDefinitionMapper.php : 30
public mapToFieldValueArgsBuilder(FieldDefinition $fieldDefinition) : string|null

Parameters

Name Type Default value Description
$fieldDefinition FieldDefinition - -

Return values

string|null

the argsBuilder string, or null if there are none.

publicmapToFieldValueInputType()

FieldDefinitionMapper.php : 21
public mapToFieldValueInputType(ContentType $contentType, FieldDefinition $fieldDefinition) : string|null

Parameters

Name Type Default value Description
$contentType ContentType - -
$fieldDefinition FieldDefinition - -

Return values

string|null

publicmapToFieldValueResolver()

FieldDefinitionMapper.php : 23
public mapToFieldValueResolver(FieldDefinition $fieldDefinition) : string|null

Parameters

Name Type Default value Description
$fieldDefinition FieldDefinition - -

Return values

string|null

publicmapToFieldValueType()

FieldDefinitionMapper.php : 19
public mapToFieldValueType(FieldDefinition $fieldDefinition) : string|null

Parameters

Name Type Default value Description
$fieldDefinition FieldDefinition - -

Return values

string|null