-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from magento-api/MAGETWO-40818-Transactional-…
…Email-Templates [API] Transactional Email Templates - Merging outsourced PR
- Loading branch information
Showing
27 changed files
with
539 additions
and
494 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,16 @@ | |
*/ | ||
namespace Magento\Email\Block\Adminhtml\Template; | ||
|
||
use Magento\Backend\Block\Widget; | ||
use Magento\Backend\Block\Widget\ContainerInterface; | ||
|
||
/** | ||
* Adminhtml system template edit block | ||
* | ||
* @author Magento Core Team <[email protected]> | ||
* @method array getTemplateOptions() | ||
*/ | ||
class Edit extends \Magento\Backend\Block\Widget implements \Magento\Backend\Block\Widget\ContainerInterface | ||
class Edit extends Widget implements ContainerInterface | ||
{ | ||
/** | ||
* @var \Magento\Framework\Registry | ||
|
@@ -336,6 +339,16 @@ public function isTextType() | |
return $this->getEmailTemplate()->isPlain(); | ||
} | ||
|
||
/** | ||
* Return template type from template object | ||
* | ||
* @return int | ||
*/ | ||
public function getTemplateType() | ||
{ | ||
return $this->getEmailTemplate()->getType(); | ||
} | ||
|
||
/** | ||
* Return delete url for customer group | ||
* | ||
|
This file contains 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
Oops, something went wrong.