Skip to content

Commit

Permalink
Merge pull request #1162 from SquishyLeaf/Styles-scripts-example-3.3
Browse files Browse the repository at this point in the history
Fix examples-styles-scripts.md
  • Loading branch information
asmecher authored Mar 19, 2024
2 parents 38e7377 + cd4cbf8 commit 84466d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/plugin-guide/3.3/en/examples-styles-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class TutorialExamplePlugin extends GenericPlugin {
}
```

By default, scripts and styles are loaded on the reader-facing website. Pass a `context` argument to load them in the editorial backend.
By default, scripts and styles are loaded on the reader-facing website. Pass a `contexts` argument to load them in the editorial backend.

```php
$templateMgr->addStyleSheet(
'tutorialExampleStyles',
$url,
['context' => 'backend']
['contexts' => 'backend']
);
```

Expand All @@ -57,7 +57,7 @@ You can pass more than one context to load them in two places.
$templateMgr->addStyleSheet(
'tutorialExampleStyles',
$url,
['context' => ['backend', 'frontend']
['contexts' => ['backend', 'frontend']
);
```

Expand Down

0 comments on commit 84466d8

Please sign in to comment.