0

How to find out which Magento module is customize/extended in Magento EE 2.3.x ?

Is there any CLI? or any other way to get this done?

Please reply as soon as possible.

4
  • Have you get custom module list ?
    – Msquare
    Mar 27, 2020 at 11:17
  • @Msquare Not yet bro, any idea? Mar 30, 2020 at 6:29
  • i can helps you to get all third party module list .
    – Msquare
    Mar 30, 2020 at 6:38
  • @Msquare thanks then share it, the proper way of approach. Mar 30, 2020 at 6:53

1 Answer 1

0

Add this code in your file where you want to get.

protected $moduleList;
protected $moduleReader;

public function __construct(
    .................................................
    \Magento\Framework\Module\ModuleList $moduleList,
    \Magento\Framework\Module\Dir\Reader $moduleReader,
    .................................................
) {
    .................................................
    $this->moduleList = $moduleList;
    $this->moduleReader = $moduleReader;
    .................................................
}

now you can add this code in your custom function or execute() function

$result = [];

$modules = $this->moduleList->getNames();
foreach ($modules as $_module) {
    $dir = $this->moduleReader->getModuleDir(null, $_module);
    if(strpos($dir, 'app/code') !== false)
    {
        $result[] = $_module;
    }
}
echo "<pre>";
print_r($result);
exit();

Click here for Reference link

I Hope This Helps You.

3
  • Thanks for reply let me check! Mar 30, 2020 at 13:51
  • please inform me it's helps you ?
    – Msquare
    Apr 5, 2020 at 6:27
  • No, it's not as per my requirements, by the way, thanks for your help. [ I want to find out Magento EE 2.3.x module which is customized/modified] Apr 6, 2020 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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