Which layout instruction would be used to move the block?

An Adobe Commerce developer has been asked to move a block called country from the container sidebar to the container content, the block has to be the last child on the content container.

Which layout instruction would be used to move the block?
A . <move element = "country" destination="content" after="-"/>
B . <move element="country-element" destination="content-element"/>
C . <move element="country" destination="content" after=”last-child"/>

Answer: A

Explanation:

To move a block from one container to another, the developer needs to use the <move> layout instruction with the element attribute specifying the name of the block and the destination attribute specifying the name of the container. The after attribute can be used to position the block relative to other blocks in the same container. The value “-” means that the block will be placed after all other blocks, i.e., as the last child. The value “last-child” is not valid for the after attribute and will not work. The element and destination attributes should use the names of the blocks and containers, not

their aliases or classes.

Reference: [Layout instructions], [Move an element]

Latest AD0-E720 Dumps Valid Version with 50 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments