Skip to content

Commit f8e36d9

Browse files
authored
Merge pull request #9164 from obozdag/patch-22
docs: Fix track function definition in helpers/html_helper.rst
2 parents 008f2a9 + e81e8e7 commit f8e36d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

user_guide_src/source/helpers/html_helper.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,12 @@ The following functions are available:
325325

326326
.. literalinclude:: html_helper/018.php
327327

328-
.. php:function:: track($name = ''[, $type = false[, $attributes = '']])
328+
.. php:function:: track($src, $kind, $srcLanguage, $label)
329329
330-
:param string $name: The name of the parameter
331-
:param string $value: The value of the parameter
332-
:param array $attributes: HTML attributes
330+
:param string $src: The path of the track (.vtt file)
331+
:param string $kind: The kind of timed track
332+
:param string $srcLanguage: The language of the timed track
333+
:param string $label: A user-readable title for the timed track
333334
:returns: An HTML track element
334335
:rtype: string
335336

0 commit comments

Comments
 (0)