Entry ​
- Type
- Class
- Namespace
- craft\gql\mutations
- Inherits
- craft\gql\mutations\Entry » craft\gql\base\Mutation
- Uses traits
- craft\gql\base\GqlTypeTrait
- Since
- 3.5.0
Class Entry
Public Methods ​
| Method | Description |
|---|---|
| createSaveMutations() | Create the per-entry-type save mutations. |
| createSaveMutationsForField() | Create the per-entry-type save mutations for a nested entry field. |
| getMutations() | Returns the mutations defined by the class as an array. |
| getType() | Returns an instance of this schema object's type as provided by entity registry |
createSaveMutations() ​
Create the per-entry-type save mutations.
Arguments ​
$section(craft\models\Section)$entryType(craft\models\EntryType)$createSaveDraftMutation(boolean)
Returns ​
Throws ​
createSaveMutationsForField() ​
Create the per-entry-type save mutations for a nested entry field.
Arguments ​
$field(craft\base\ElementContainerFieldInterface)$entryType(craft\models\EntryType)$createSaveDraftMutation(boolean)
Returns ​
Throws ​
getMutations() ​
Returns the mutations defined by the class as an array.
Returns ​
Protected Methods ​
| Method | Description |
|---|---|
| getConditionalFields() | Return conditional fields for this type. |
| prepareResolver() | Load content fields and value normalizers on the resolver, based on content fields. |