Skip to content

Commit

Permalink
Merge pull request #170 from adobe-commerce-tier-4/ACP2E-3031-FIX
Browse files Browse the repository at this point in the history
ACP2E-3031: Update the documentation on OM in templates
  • Loading branch information
jeff-matthews authored Apr 23, 2024
2 parents ad51d7c + 28e64ac commit b7e5836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/guide/layouts/xml-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ The argument with *helper* type can contain `param` items which can be passed as

import Docs from '/src/_includes/objects-in-templates.md'

<Docs />

These argument examples can be taken in the template by *getData* method. Another way to take these arguments is using the magic method *get* followed by the name of argument in CamelCase format. Here is an example to retrieve the arguments from above example:

```php
Expand Down
2 changes: 2 additions & 0 deletions src/pages/guide/templates/override.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Arguments values set in a layout file are accessed in templates using the block'

import Docs from '/src/_includes/objects-in-templates.md'

<Docs />

For example, set an argument in the block: `<argument name="store_name" xsi:type="string">ExampleCorp</argument>`.

* Get the argument value, in the template:
Expand Down

0 comments on commit b7e5836

Please sign in to comment.