i have plugin for customer account create

public function aroundExecute(
        \Magento\Customer\Controller\Account\Create $subject,
        \Closure $proceed
        $getid = $subject->getRequest()->getParam('param_id');

        return $proceed();

the URL


I'm getting the value 20 in that plugin

I want to pass the value to customer registration success observer

how i can do this????

  • Add your logic directly before return $proceed();; – aravind May 27 at 13:20
  • how i can pass the value to observer – prabhakaran7 May 27 at 13:33
  • What is the observer you want to catch? – Khoa TruongDinh May 27 at 16:02
  • that param_Id in url – prabhakaran7 May 28 at 3:41
  • You can write your code in aroundExecute function what you want to write in your observer – Ranganathan May 28 at 4:37

Your Answer

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

Browse other questions tagged or ask your own question.