From 210406d576219ac22aa5da4a22fc2e33c7410ac4 Mon Sep 17 00:00:00 2001 From: Jack Webb-Heller <627533+jackwh@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:49:41 +0000 Subject: [PATCH] Fix typo in 02-stats-overview.md --- packages/widgets/docs/02-stats-overview.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/widgets/docs/02-stats-overview.md b/packages/widgets/docs/02-stats-overview.md index 0fda615dc6..c5fa312707 100644 --- a/packages/widgets/docs/02-stats-overview.md +++ b/packages/widgets/docs/02-stats-overview.md @@ -168,18 +168,18 @@ protected static bool $isLazy = false; ## Adding a header and description -You may also add a header and description text above the widget by overriding the `$header` and `$description` properties: +You may also add a header and description text above the widget by overriding the `$heading` and `$description` properties: ```php -protected ?string $header = 'Analytics'; +protected ?string $heading = 'Analytics'; protected ?string $description = 'An overview of some analytics.'; ``` -If you need to dynamically generated the header or description text, you can instead override the `getHeader()` and `getDescription()` methods: +If you need to dynamically generated the header or description text, you can instead override the `getHeading()` and `getDescription()` methods: ```php -protected function getHeader(): ?string +protected function getHeading(): ?string { return 'Analytics'; }