silverstripe-cms/code/GraphQL/Resolver.php

15 lines
239 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\CMS\GraphQL;
use SilverStripe\CMS\Model\SiteTree;
class Resolver
{
public static function resolveGetPageByLink($obj, array $args = [])
{
return SiteTree::get_by_link($args['link']);
}
}