You are working on a project with custom code located in an observer MyCompany\MyModule\Observer\Custom on the catalog_product_load_before event. How do you prevent your custom observer from being executed on a staging preview?
Hmm, this looks like it's testing our knowledge of the Cisco Firepower Management Center API. I think the key is figuring out which HTTP method is used to create or update intrusion policies.
Hold up, did you say 'catalog_product_ioad_before'? I think you meant 'catalog_product_load_before'. I'm already questioning the validity of this question...
Hold up, did you say 'catalog_product_ioad_before'? I think you meant 'catalog_product_load_before'. I'm already questioning the validity of this question...
Hold up, did you say 'catalog_product_ioad_before'? I think you meant 'catalog_product_load_before'. I'm already questioning the validity of this question...
I'm not sure about that. Wouldn't it be better to move the observer to the staged_catalog_product_load_before event instead? That way, it won't get executed during the staging preview at all.
Option C looks like the right solution to me. Specifying an attribute in the observer declaration to exclude it from staging preview seems like the most straightforward approach.
I disagree, I believe the correct answer is C) By specifying an attribute exclude_from_staging_preview=''1'' in the declaration of the observer in the events.xml file
Youlanda
5 months agoMalissa
5 months agoAnnelle
6 months agoTamesha
6 months agoMaryln
6 months agoSalome
6 months agoClay
6 months agoLawrence
6 months agoVivan
6 months agoShizue
6 months agoKathrine
6 months agoWillow
7 months agoLinwood
11 months agoOliva
10 months agoBurma
11 months agoAlberta
11 months agoAmber
12 months agoNieves
12 months agoMarcelle
10 months agoEdward
10 months agoGlory
10 months agoGeorgene
11 months agoGertude
11 months agoAdela
11 months agoWerner
11 months agoYoulanda
11 months agoClorinda
12 months agoMelodie
1 year agoDorsey
11 months agoCarin
11 months agoGerald
1 year agoAlline
1 year agoGerald
1 year ago