Created
May 7, 2016 11:04
-
-
Save adragus-inviqa/52faeb070b8f95f5f295820ddee2b406 to your computer and use it in GitHub Desktop.
adding a button in Magento\SalesRule\Block\Adminhtml\Promo\Quote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<type name="Magento\SalesRule\Block\Adminhtml\Promo\Quote"> | |
<plugin name="my_vendor.add.button" type="MyVendor\Plugin\PromoQuotePlugin" /> | |
</type> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PromoQuotePlugin | |
{ | |
public function beforeGetButtonsHtml(Magento\SalesRule\Block\Adminhtml\Promo\Quote $subject, $region = null) | |
{ | |
$subject->addButton($buttonId, $data, $level, $sortOrder, $region); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment