You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-v2/content/en/search/basic-filters.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,19 @@ public function subtitle(): ?string
95
95
}
96
96
```
97
97
98
+
The `repositoryTitle` could be customized by overriding the `label` method or by defining the `$label` property. This will customize the displayed repository title in the global search response:
99
+
100
+
```php
101
+
// UserRepository.php
102
+
public static string $label = 'Custom Repository Title';
103
+
104
+
// Or using the label method for dynamic titles:
105
+
public static function label(): string
106
+
{
107
+
return 'Dynamic Title';
108
+
}
109
+
```
110
+
98
111
## Repository Search
99
112
100
113
The repository search works in a similar way as [global search](#global-search), however in this case the endpoint refers to the repository and the search will be applied for a certain repository.
0 commit comments