Exit AD0-E720 Adobe Commerce Front-End Developer Expert
Question 4 of 5
0% complete
Q4 Multiple choice

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.)

Select all that apply.

  • A

    $block->getData('view_model')

  • B

    $block->viewModel()

  • C

    $block->getViewHodel()

  • D

    $block->getData('viewModel)