| 1 | <?php |
||
| 11 | class ObjectType extends AbstractObjectType implements TypeSystemPluginReferenceInterface { |
||
| 12 | use TypeSystemPluginReferenceTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The associated type system plugin. |
||
| 16 | * |
||
| 17 | * @var \Drupal\graphql\Plugin\GraphQL\Types\TypePluginBase |
||
| 18 | */ |
||
| 19 | protected $plugin; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function __construct(TypePluginBase $plugin, array $config = []) { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public function getName() { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Checks whether this type applies to a given object. |
||
| 38 | * |
||
| 39 | * @param mixed $object |
||
| 40 | * The object to check against. |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | * TRUE if this type applies to the given object, FALSE otherwise. |
||
| 44 | */ |
||
| 45 | public function applies($object) { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function build($config) { |
||
| 55 | |||
| 56 | } |
||
| 57 |