Source of file ClassSummaryTypeCreator.php
Size: 0,850 Bytes - Last Modified: 2021-12-23T10:50:47+00:00
/var/www/docs.ssmods.com/process/src/src/GraphQL/Types/ClassSummaryTypeCreator.php
1234567891011121314151617181920212223242526272829303132 | <?php namespace SilverStripe\Gatsby\GraphQL\Types; use GraphQL\Type\Definition\Type; use SilverStripe\Core\Injector\Injector; use SilverStripe\Gatsby\GraphQL\Types\Enums\ClassNameTypeCreator; use SilverStripe\GraphQL\Scaffolding\StaticSchema; use SilverStripe\GraphQL\TypeCreator; class ClassSummaryTypeCreator extends TypeCreator { public function attributes() { return [ 'name' => 'ClassSummary', 'description' => 'A list of all classes included in the sync, along with their custom fields', ]; } public function fields() { return [ 'className' => ['type' => Injector::inst()->get(ClassNameTypeCreator::class)->toType()], 'shortName' => ['type' => Type::string()], 'fields' => ['type' => Type::listOf(Type::string())], ]; } } |