silverstripe-cms/code/GraphQL/Resolver.php
2020-12-01 21:27:16 +13:00

15 lines
239 B
PHP

<?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']);
}
}