• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AxeWP / wp-graphql-rank-math / 5034015993

pending completion
5034015993

push

github

David Levine
feat: add redirection settings

86 of 86 new or added lines in 8 files covered. (100.0%)

2008 of 2392 relevant lines covered (83.95%)

5.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Modules/Redirection/Fields/GeneralSettings.php
1
<?php
2
/**
3
 * Registers fields to General
4
 *
5
 * @package WPGraphQL\Fields
6
 */
7

8
namespace WPGraphQL\RankMath\Modules\Redirection\Fields;
9

10
use WPGraphQL\RankMath\Modules\Redirection\Type\WPObject\RedirectionSettings;
11
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\FieldsType;
12
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Traits\TypeNameTrait;
13

14
/**
15
 * Class - GeneralSettings
16
 */
17
class GeneralSettings extends FieldsType {
18
        use TypeNameTrait;
19

20
        /**
21
         * {@inheritDoc}
22
         */
23
        protected static function type_name() : string {
24
                return 'General';
×
25
        }
26

27
        /**
28
         * {@inheritDoc}
29
         */
30
        public static function get_fields() : array {
31
                return [
×
32
                        'redirections' => [
×
33
                                'type'        => RedirectionSettings::get_type_name(),
×
34
                                'description' => __( 'RankMath SEO redirection settings', 'wp-graphql-rank-math' ),
×
35
                        ],
×
36
                ];
×
37
        }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc