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
/
InterfaceType.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\gql\base; use craft\base\Element; use craft\gql\GqlEntityRegistry; use GraphQL\Type\Definition\Type; /** * Class InterfaceType * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.3.0 */ abstract class InterfaceType { /** * Returns the schema object name * * @return string */ abstract public static function getName(): string; /** * Returns the associated type generator class. * * @return string */ abstract public static function getTypeGenerator(): string; /** * Resolve an element type name. * * @param Element $element * @return string * @since 3.5.0 */ public static function resolveElementTypeName(Element $element): string { return GqlEntityRegistry::prefixTypeName($element->getGqlTypeName()); } /** * List of fields for this type. * * @return array */ public static function getFieldDefinitions(): array { return [ 'id' => [ 'name' => 'id', 'type' => Type::id(), 'description' => 'The ID of the entity', ], 'uid' => [ 'name' => 'uid', 'type' => Type::string(), 'description' => 'The UID of the entity', ], ]; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/././cms/src/gql/base/InterfaceType.php