Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit a1f32a2

Browse files
authored
Merge pull request #608 from magento/am_63122
added arguments description
2 parents 375d608 + f399436 commit a1f32a2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

guides/v2.0/frontend-dev-guide/layouts/xml-instructions.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ Used as follows:
436436
The specified <a href="{{page.baseurl}}frontend-dev-guide/layouts/layout-overview.html#handle" target="_blank">handle</a> is "included" and executed recursively.
437437

438438
<h3 id="argument">&lt;argument&gt;</h3>
439-
Used to pass an argument.
440-
439+
Used to pass an argument. Must be always enclosed in [`<arguments></arguments>`](#arguments).
440+
441441
<table>
442442
<tbody>
443443
<tr>
@@ -510,5 +510,16 @@ $cssClass = $this->getCssClass() ? ' ' . $this->getCssClass() : '';
510510
...
511511
{%endhighlight %}
512512

513+
### <arguments> {#arguments}
514+
515+
`<arguments></arguments>` is a required container for `<argument></argument>`. Does not have own attributes.
513516

517+
Example:
514518

519+
{%highlight xml%}
520+
...
521+
<arguments>
522+
<argument name="css_class" xsi:type="string">header links</argument>
523+
</arguments>
524+
...
525+
{%endhighlight xml%}

0 commit comments

Comments
 (0)