Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E704 Exam - Topic 15 Question 77 Discussion

You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of \Magento\Cms\Api\BlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version.How do you load the CMS block with the right Staging version?A)B)C)D)
D) Option D
A) Option A
B) Option B
C) Option C

Adobe AD0-E704 Exam - Topic 15 Question 77 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 77
Topic #: 15
[All AD0-E704 Questions]

You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of \Magento\Cms\Api\BlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version.

How do you load the CMS block with the right Staging version?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Fidelia
10 hours ago
I feel like we discussed how to handle staging versions in class, but I can't quite recall which option fits best. I might lean towards option A.
upvoted 0 times
...
Dannie
6 days ago
I vaguely recall something about using the block ID and version together, but I can't remember the exact syntax. Could it be option D?
upvoted 0 times
...
Gerald
11 days ago
I practiced a similar question where we had to load a CMS block, and I feel like the current version is important. Maybe it's option C?
upvoted 0 times
...
Jesusita
16 days ago
I think I remember that we need to use the repository to get the block, but I'm not sure if it's option A or B.
upvoted 0 times
...

Save Cancel