uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
.
/
gql
/
base
/
GqlTypeTrait.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\gql\base; use craft\gql\GqlEntityRegistry; use GraphQL\Type\Definition\ObjectType as GqlObjectType; use GraphQL\Type\Definition\Type; /** * Trait GqlTypeTrait * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.3.0 */ trait GqlTypeTrait { /** * Returns an instance of this schema object's type as provided by entity registry * * @param array|null $fields optional fields to use * @return GqlObjectType */ public static function getType(?array $fields = null): Type { return GqlEntityRegistry::getOrCreate(static::class, fn() => new GqlObjectType([ /** @phpstan-ignore-next-line */ 'name' => static::getName(), 'fields' => $fields ?: (static::class . '::getFieldDefinitions'), ])); } /** * Return conditional fields for this type. * * @return array */ protected static function getConditionalFields(): array { return []; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/./gql/base/GqlTypeTrait.php