nystudio107 /
craft-retour
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Retour plugin for Craft CMS |
||
| 4 | * |
||
| 5 | * Retour allows you to intelligently redirect legacy URLs, so that you don't |
||
| 6 | * lose SEO value when rebuilding & restructuring a website |
||
| 7 | * |
||
| 8 | * @link https://nystudio107.com/ |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 9 | * @copyright Copyright (c) 2019 nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 10 | */ |
||
|
0 ignored issues
–
show
|
|||
| 11 | |||
| 12 | namespace nystudio107\retour\gql\arguments; |
||
| 13 | |||
| 14 | use craft\gql\base\Arguments; |
||
| 15 | use GraphQL\Type\Definition\Type; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Class RetourArguments |
||
| 19 | * |
||
| 20 | * @author nystudio107 |
||
|
0 ignored issues
–
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
|
|||
| 21 | * @package Retour |
||
|
0 ignored issues
–
show
|
|||
| 22 | * @since 3.1.26 |
||
|
0 ignored issues
–
show
|
|||
| 23 | */ |
||
|
0 ignored issues
–
show
|
|||
| 24 | class RetourArguments extends Arguments |
||
| 25 | { |
||
| 26 | /** |
||
|
0 ignored issues
–
show
|
|||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
|
0 ignored issues
–
show
|
|||
| 29 | public static function getArguments(): array |
||
| 30 | { |
||
| 31 | return [ |
||
| 32 | 'uri' => [ |
||
| 33 | 'name' => 'uri', |
||
| 34 | 'type' => Type::string(), |
||
| 35 | 'description' => 'The URI to resolve a redirect for.', |
||
| 36 | ], |
||
| 37 | 'site' => [ |
||
| 38 | 'name' => 'site', |
||
| 39 | 'type' => Type::string(), |
||
| 40 | 'description' => 'The site handle to resolve a redirect for.', |
||
| 41 | ], |
||
| 42 | 'siteId' => [ |
||
| 43 | 'name' => 'siteId', |
||
| 44 | 'type' => Type::int(), |
||
| 45 | 'description' => 'The siteId to resolve a redirect for.', |
||
| 46 | ], |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |