Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit f8b2608

Browse files
Update head link function parameters documentation
1 parent 9b485ef commit f8b2608

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/book/helpers/head-link.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ elements for later retrieval and output in your layout script.
88
The `HeadLink` helper has special methods for adding stylesheet links to its
99
stack:
1010

11-
- `appendStylesheet($href, $media, $conditionalStylesheet, $extras)`
12-
- `offsetSetStylesheet($index, $href, $media, $conditionalStylesheet, $extras)`
13-
- `prependStylesheet($href, $media, $conditionalStylesheet, $extras)`
14-
- `setStylesheet($href, $media, $conditionalStylesheet, $extras)`
11+
- `appendStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())`
12+
- `offsetSetStylesheet($index, $href, $media = 'screen', $conditionalStylesheet = '', $extras = array())`
13+
- `prependStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())`
14+
- `setStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())`
1515

1616
The `$media` value defaults to 'screen', but may be any valid media value.
1717
`$conditionalStylesheet` is a string or boolean `false`, and will be used at
@@ -22,10 +22,10 @@ extra values that you want to be added to the tag.
2222
Additionally, the `HeadLink` helper has special methods for adding 'alternate'
2323
links to its stack:
2424

25-
- `appendAlternate($href, $type, $title, $extras)`
26-
- `offsetSetAlternate($index, $href, $type, $title, $extras)`
27-
- `prependAlternate($href, $type, $title, $extras)`
28-
- `setAlternate($href, $type, $title, $extras)`
25+
- `appendAlternate($href, $type, $title, $extras = array())`
26+
- `offsetSetAlternate($index, $href, $type, $title, $extras = array())`
27+
- `prependAlternate($href, $type, $title, $extras = array())`
28+
- `setAlternate($href, $type, $title, $extras = array())`
2929

3030
The `headLink()` helper method allows specifying all attributes necessary for a
3131
`<link>` element, and allows you to also specify placement: whether the

0 commit comments

Comments
 (0)