Skip to content

Commit 5c24074

Browse files
committed
Fix nav labels tags
1 parent 177a35c commit 5c24074

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Resources/TagResource.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public static function getNavigationLabel(): string
4444
return flexiblePagesTrans('tags.tag_plural_lbl');
4545
}
4646

47+
public static function getLabel(): ?string
48+
{
49+
return flexiblePagesTrans('tags.tag_lbl');
50+
}
51+
4752
public static function getModelLabel(): string
4853
{
4954
return flexiblePagesTrans('tags.tag_lbl');

src/Resources/TagTypeResource.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public static function getNavigationLabel(): string
4949
return flexiblePagesTrans('tag_types.tag_type_plural_lbl');
5050
}
5151

52+
public static function getLabel(): ?string
53+
{
54+
return flexiblePagesTrans('tag_types.tag_type_lbl');
55+
}
56+
5257
public static function getModelLabel(): string
5358
{
5459
return flexiblePagesTrans('tag_types.tag_type_lbl');
@@ -61,7 +66,7 @@ public static function getPluralModelLabel(): string
6166

6267
public static function getNavigationParentItem(): ?string
6368
{
64-
return FilamentFlexibleContentBlockPages::config()->getResources()[FilamentFlexibleContentBlockPagesConfig::TYPE_TAG]::getNavigationParentItem();
69+
return FilamentFlexibleContentBlockPages::config()->getResources()[FilamentFlexibleContentBlockPagesConfig::TYPE_TAG]::getLabel();
6570
}
6671

6772
public static function getNavigationSort(): ?int

0 commit comments

Comments
 (0)