Skip to content

Commit ff38f5e

Browse files
committed
Fix name of stylesheet function
1 parent 4735b90 commit ff38f5e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DashboardPanelHelloWorld.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class DashboardPanelHelloWorld extends DashboardPanel
7171
/**
7272
* Get a list of the panel's stylesheets.
7373
*/
74-
public function getStyles()
74+
public function getStylesheets()
7575
{
7676
return ['https://cdnjs.cloudflare.com/something.min.css'];
7777
}

DashboardPanelTemplate.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DashboardPanelTemplate extends DashboardPanel
5353
return [$this->replaceFileExtension($this->templateFile, 'js')];
5454
}
5555

56-
public function getStyles()
56+
public function getStylesheets()
5757
{
5858
return [$this->replaceFileExtension($this->templateFile, 'css')];
5959
}

docs/panels/custom.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Every panel module **must** implement the `getContent()` method that returns the
2525
- `getFooter()`: returns the rendered markup for the panel footer (string)
2626
- `getClassNames()`: returns additional class names for the panel div (array)
2727
- `getAttributes()`: returns HTML attributes for the panel card (array of `attr => value`)
28-
- `getStyles()`: returns styles to load (array of filenames or URLs)
28+
- `getStylesheets()`: returns stylesheets to load (array of filenames or URLs)
2929
- `getScripts()`: returns scripts to load (array of filenames or URLs)
3030
- `getInterval()`: returns the interval at which the panel is reloaded via AJAX (integer, milliseconds)
3131

0 commit comments

Comments
 (0)