Files
animethemes-server/app/GraphQL/Definition/Fields/Document/Page/PageSlugField.php
T

33 lines
605 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Document\Page;
use App\GraphQL\Definition\Fields\StringField;
use App\Models\Document\Page;
/**
* Class PageSlugField.
*/
class PageSlugField extends StringField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(Page::ATTRIBUTE_SLUG, nullable: false);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The URL slug & route key of the resource';
}
}