Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -10,6 +10,7 @@
|
||||
|
||||
namespace IPS\Content\Api\GraphQL;
|
||||
|
||||
use \IPS\Api\GraphQL\TypeRegistry;
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
@@ -22,6 +23,18 @@ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
*/
|
||||
abstract class _ItemMutator extends ContentMutator
|
||||
{
|
||||
public function args(): array
|
||||
{
|
||||
return [
|
||||
'category' => TypeRegistry::nonNull( TypeRegistry::id() ),
|
||||
'title' => TypeRegistry::nonNull( TypeRegistry::string() ),
|
||||
'content' => TypeRegistry::nonNull( TypeRegistry::string() ),
|
||||
'tags' => TypeRegistry::listOf( TypeRegistry::string() ),
|
||||
'state' => TypeRegistry::itemState(),
|
||||
'postKey' => TypeRegistry::string()
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark as read
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user