Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vpietri/magento2-developer-quickd…
Browse files Browse the repository at this point in the history
…evbar
  • Loading branch information
vpietri committed Jun 19, 2018
2 parents 911ddd7 + e40a66f commit c651dc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Helper/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class Register extends \Magento\Framework\App\Helper\AbstractHelper
public function addObserver($observerConfig, $wrapper)
{
$data = $observerConfig;

if (isset($data['disabled']) && true === $data['disabled']) {
return;
}

$data['event'] = $wrapper->getEvent()->getName();

$key = md5(serialize($data));
Expand Down

0 comments on commit c651dc3

Please sign in to comment.