Skip to content

docs: Fix $indexPage param explanations in helpers/html_helper.rst #9162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions user_guide_src/source/helpers/html_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The following functions are available:
.. php:function:: img([$src = ''[, $indexPage = false[, $attributes = '']]])

:param string|array $src: Image source URI, or array of attributes and values
:param bool $indexPage: Whether to treat ``$src`` as a routed URI string
:param bool $indexPage: Should ``Config\App::$indexPage`` be added to the source path
:param mixed $attributes: Additional HTML attributes
:returns: HTML image element
:returns: An HTML image element
:rtype: string

Lets you create HTML ``<img>`` elements. The first parameter contains the
Expand Down Expand Up @@ -81,14 +81,14 @@ The following functions are available:
:param string $type: Type of the related document
:param string $title: Link title
:param string $media: Media type
:param bool $indexPage: Whether to treat ``$src`` as a routed URI string
:param bool $indexPage: Should indexPage be added to the link path
:param string $hreflang: Hreflang type
:returns: An HTML link element
:rtype: string

Lets you create HTML ``<link>`` elements. This is useful for stylesheet links,
as well as other links. The parameters are *href*, with optional *rel*,
*type*, *title*, *media* and *indexPage*.
*type*, *title*, *media*, *indexPage* and *hreflang*.

*indexPage* is a boolean value that specifies if the *href* should have
the page specified by ``$config['indexPage']`` added to the address it creates.
Expand Down Expand Up @@ -216,7 +216,7 @@ The following functions are available:
:param string $unsupportedMessage: The message to display if the video element is not supported by the browser
:param string $attributes: HTML attributes
:param array $tracks: Use the track function inside an array. See :php:func:`track()` function
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the video source path
:returns: An HTML video element
:rtype: string

Expand Down Expand Up @@ -255,7 +255,7 @@ The following functions are available:
:param string $unsupportedMessage: The message to display if the audio element is not supported by the browser
:param string $attributes:
:param array $tracks: Use the track function inside an array. See :php:func:`track()` function
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the audio source path
:returns: An HTML audio element
:rtype: string

Expand All @@ -279,7 +279,7 @@ The following functions are available:
:param string $src: The path of the resource to embed
:param bool $type: MIME-type
:param array $attributes: HTML attributes
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the source path
:returns: An HTML embed element
:rtype: string

Expand All @@ -293,6 +293,7 @@ The following functions are available:
:param string $data: A resource URL
:param bool $type: Content-type of the resource
:param array $attributes: HTML attributes
:param bool $indexPage: Should indexPage be added to the resource URL
:param array $params: Use the param function inside an array. See :php:func:`param()` function
:returns: An HTML object element
:rtype: string
Expand Down