List of questions
Related questions
Question 12 - AD0-E720 discussion
An Adobe Commerce developer is using a view model within an existing block:
What are two ways to access the view model class in the template? (Choose two.)
A.
$block->getData('view_model')
B.
$block->viewModel()
C.
$block->getViewHodel()
D.
$block->getData('viewModel)
Your answer:
0 comments
Sorted by
Leave a comment first