Source of file DescendantFileCountType.php
Size: 0,955 Bytes - Last Modified: 2021-12-23T10:27:34+00:00
/var/www/docs.ssmods.com/process/src/_legacy/GraphQL/DescendantFileCountType.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?php namespace SilverStripe\AssetAdmin\GraphQL; use GraphQL\Type\Definition\Type; use SilverStripe\GraphQL\TypeCreator; if (!class_exists(TypeCreator::class)) { return; } /** * Define the return type for ReadDescendantFileCountsQueryCreator * Return as an array of object with an 'id' property and 'count' property. * * @deprecated 1.8..2.0 Use silverstripe/graphql:^4 functionality. */ class DescendantFileCountType extends TypeCreator { /** * @return array */ public function attributes() { return [ 'name' => 'DescendantFileCount', 'description' => 'Count of descendant non-folder Files', ]; } /** * @return array */ public function fields() { return [ 'id' => [ 'type' => Type::nonNull(Type::id()), ], 'count' => [ 'type' => Type::int(), ], ]; } } |