Question 51

How can you access the select query of a collection?
  • Question 52

    A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.
    What is a consequence of this setup?
  • Question 53

    You see this code in etc/adminhtml/routes.xml:
    <route id="mymodule" frontName="user-subscriptions">
    <module name="MyCompany_MyModule" />
    </route> You have placed a controller in Controller/Index/Subscribe.php.
    If you want to create layout XML instructions for this controller, what would be the layout XML's filename?
  • Question 54

    You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.
    How do you do that?
  • Question 55

    You are building CLI that use the console to create a customer account with our custom command as like php bin/magento customer:user:create --customer-firstname="Mahin" --customer-lastname="Rahman" --customer-email="[email protected]" --customer-password="mahin@123" --website="1"
    using: protected function configure() { $this->setName('customer:user:create') - >setDescription('Create new customer') ->setDefinition($this->getOptionsList()); } protected function getOptionsList(){ return [
    ------------------]; } Which below Option are not required in blank? (Choose 2)