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

AxeWP / wp-graphql-rank-math / 15507492505

07 Jun 2025 11:44AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507492505

push

github

web-flow
dev: add support for lazy-loading `description`/`deprecationReason` config values (#121)

* chore: update strauss and deps

* dev: use callable descriptions/deprecations

* fix: dont prefix `NodeWithRankMathSeo`

* chore: fix backcompat on connections

* chore: update dep

* chore: update deps

* tests: ensure schema can build

* chore: update and cleanup

* fix: regenerate autoloader

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

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

98.15
/src/Type/WPObject/Settings/General/BreadcrumbsConfig.php
1
<?php
2
/**
3
 * The Breadcrumbs GraphQL object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject\Settings\General
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject\Settings\General;
11

12
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
13

14
/**
15
 * Class - BreadcrumbsConfig
16
 */
17
class BreadcrumbsConfig extends ObjectType {
18
        /**
19
         * {@inheritDoc}
20
         */
21
        protected static function type_name(): string {
22
                return 'BreadcrumbsConfig';
20✔
23
        }
24

25
        /**
26
         * {@inheritDoc}
27
         */
28
        public static function get_description(): string {
UNCOV
29
                return __( 'The RankMath SEO breadcrumbs settings.', 'wp-graphql-rank-math' );
×
30
        }
31

32
        /**
33
         * {@inheritDoc}
34
         */
35
        public static function get_fields(): array {
36
                $fields = [
20✔
37
                        'separator'             => [
20✔
38
                                'type'        => 'String',
20✔
39
                                'description' => static fn () => __( 'Separator character or string that appears between breadcrumb items.', 'wp-graphql-rank-math' ),
20✔
40
                        ],
20✔
41
                        'hasHome'               => [
20✔
42
                                'type'        => 'Boolean',
20✔
43
                                'description' => static fn () => __( 'Whether to display the homepage breadcrumb in trail.', 'wp-graphql-rank-math' ),
20✔
44
                        ],
20✔
45
                        'homeLabel'             => [
20✔
46
                                'type'        => 'String',
20✔
47
                                'description' => static fn () => __( 'Label used for homepage link (first item) in breadcrumbs.', 'wp-graphql-rank-math' ),
20✔
48
                        ],
20✔
49
                        'homeUrl'               => [
20✔
50
                                'type'        => 'String',
20✔
51
                                'description' => static fn () => __( 'Link to use for homepage (first item) in breadcrumbs.', 'wp-graphql-rank-math' ),
20✔
52
                        ],
20✔
53
                        'prefix'                => [
20✔
54
                                'type'        => 'String',
20✔
55
                                'description' => static fn () => __( 'Prefix for the breadcrumb path.', 'wp-graphql-rank-math' ),
20✔
56
                        ],
20✔
57
                        'archiveFormat'         => [
20✔
58
                                'type'        => 'String',
20✔
59
                                'description' => static fn () => __( 'Format the label used for archive pages.', 'wp-graphql-rank-math' ),
20✔
60
                        ],
20✔
61
                        'searchFormat'          => [
20✔
62
                                'type'        => 'String',
20✔
63
                                'description' => static fn () => __( 'Format the label used for search results pages.', 'wp-graphql-rank-math' ),
20✔
64
                        ],
20✔
65
                        'notFoundLabel'         => [
20✔
66
                                'type'        => 'String',
20✔
67
                                'description' => static fn () => __( 'Label used for 404 error item in breadcrumbs.', 'wp-graphql-rank-math' ),
20✔
68
                        ],
20✔
69
                        'hasPostTitle'          => [
20✔
70
                                'type'        => 'Boolean',
20✔
71
                                'description' => static fn () => __( 'Whether the post title is visible in the breadcrumbs.', 'wp-graphql-rank-math' ),
20✔
72
                        ],
20✔
73
                        'hasAncestorCategories' => [
20✔
74
                                'type'        => 'Boolean',
20✔
75
                                'description' => static fn () => __( 'Whether to show all ancestor categories, if a category is a child category.', 'wp-graphql-rank-math' ),
20✔
76
                        ],
20✔
77
                        'hasTaxonomyName'       => [
20✔
78
                                'type'        => 'Boolean',
20✔
79
                                'description' => static fn () => __( 'Whether the taxonomy name is visible in the breadcrumbs.', 'wp-graphql-rank-math' ),
20✔
80
                        ],
20✔
81
                ];
20✔
82

83
                if ( 'page' === get_option( 'show_on_front' ) && 0 < get_option( 'page_for_posts' ) ) {
20✔
84
                        $fields['hasBlogPage'] = [
3✔
85
                                'type'        => 'Boolean',
3✔
86
                                'description' => static fn () => __( 'Whether the Blog page is visible in the breadcrumbs. Only relevant if you have a Posts page set.', 'wp-graphql-rank-math' ),
3✔
87
                        ];
3✔
88
                }
89

90
                return $fields;
20✔
91
        }
92
}
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

© 2026 Coveralls, Inc