nerdexam
Magento

M70-201 · Question #66

Which of the following could be used to pass an object to a block method?

The correct answer is B. <action method="setFoo">. See the full explanation below for the reasoning.

Question

Which of the following could be used to pass an object to a block method?

Options

  • Aoption method=nsetFoo">
  • B<action method="setFoo">
  • C<action method="setFoo">
  • DIt is not possible to pass an object to a block method via layout XML.

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    72% (18)
  • C
    8% (2)
  • D
    16% (4)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice