8

Is there a way I can retrieve the list of all plugins (with the methods they're plugged onto) and all preferences (and their original class) on a Magento 2 install.

7

For getting all available list of plugins:

Go to vendor/magento/framework/Interception/PluginList/PluginList.php find method merge

public function merge(array $config)
{
   // default code
    echo "<pre>";
    print_r($this->_data);
    die();  
}

For getting all available list of preferences:

vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php find method convert

public function convert($config)
{
// default code
   echo "<pre>";
   print_r($output);
   die();
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.