Skip to content

Commit 7643255

Browse files
authored
Update utilities.md
1 parent 6b01b11 commit 7643255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/5.x/extend/utilities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MyUtility extends Utility
3434
return 'my-utility';
3535
}
3636

37-
public static function iconPath(): ?string
37+
public static function icon(): ?string
3838
{
3939
return Craft::getAlias('@my-plugin/icon.svg');
4040
}
@@ -74,7 +74,7 @@ The static [`badgeCount()`](craft5:craft\base\UtilityInterface::badgeCount()) me
7474
::: warning
7575
Badge counts are calculated on every control panel request. Be mindful of your users’ experience, and cache any expensive arithmetic or database queries!
7676

77-
It’s also important to display a number that reflects items that are actionable for the current user. Suppose you wanted to list “stale” entries (things that hadn’t been edited in the last month)—showing a user a count across all sections (even if they didn’t have teh correct [permissions](#permissions)) might continue to display a badge, even when their backlog was cleared!
77+
It’s also important to display a number that reflects items that are actionable for the current user. Suppose you wanted to list “stale” entries (things that hadn’t been edited in the last month)—showing a user a count across all sections (even if they didn’t have the correct [permissions](#permissions)) might continue to display a badge, even when their backlog was cleared!
7878

7979
```php
8080
public static function badgeCount(): int

0 commit comments

Comments
 (0)