Asset
- Type
- Class
- Namespace
- craft\gql\interfaces\elements
- Inherits
- craft\gql\interfaces\elements\Asset » craft\gql\interfaces\Element » craft\gql\base\InterfaceType
- Uses traits
- craft\gql\base\GqlTypeTrait
- Since
- 3.3.0
Class Asset
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getDraftFieldDefinitions() | List the draft field definitions. |
getFieldDefinitions() | List of fields for this type. |
getName() | Returns the schema object name |
getType() | Returns an instance of this schema object's type as provided by entity registry |
getTypeGenerator() | Returns the associated type generator class. |
resolveElementTypeName() | Resolve an element type name. |
# getFieldDefinitions()
List of fields for this type.
View source (opens new window)
Returns
# getName()
Returns the schema object name
View source (opens new window)
Returns
# getType()
Returns an instance of this schema object's type as provided by entity registry
View source (opens new window)
Arguments
$fields
(array (opens new window)) – Optional fields to use
Returns
\GraphQL\Type\Definition\ObjectType
# getTypeGenerator()
Returns the associated type generator class.
View source (opens new window)
Returns
# Protected Methods
Method | Description |
---|---|
getConditionalFields() | Return conditional fields for this type. |
# getConditionalFields()
Return conditional fields for this type.
View source (opens new window)