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
4 months agoMalissa
4 months agoAnnelle
4 months agoTamesha
4 months agoMaryln
4 months agoSalome
5 months agoClay
5 months agoLawrence
5 months agoVivan
5 months agoShizue
5 months agoKathrine
5 months agoWillow
5 months agoLinwood
10 months agoOliva
9 months agoBurma
9 months agoAlberta
10 months agoAmber
10 months agoNieves
10 months agoMarcelle
8 months agoEdward
8 months agoGlory
9 months agoGeorgene
9 months agoGertude
9 months agoAdela
9 months agoWerner
9 months agoYoulanda
10 months agoClorinda
10 months agoMelodie
11 months agoDorsey
9 months agoCarin
9 months agoGerald
11 months agoAlline
11 months agoGerald
11 months ago