/**
  * Return CMS page ID
  *
  * @return int|null
  */
 public function getPageId()
 {
     try {
         return $this->pageRepository->getById($this->context->getRequest()->getParam('page_id'))->getId();
     } catch (NoSuchEntityException $e) {
     }
     return null;
 }
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\ObjectManagerInterface $manager, array $data = [])
 {
     $this->_request = $context->getRequest();
     $mailId = $this->_request->getParam('id');
     $this->_mail = $manager->get('\\Shockwavemk\\Mail\\Base\\Model\\Mail');
     $this->_mail->load($mailId);
     parent::__construct($context, $data);
 }
Beispiel #3
0
 /**
  * Return CMS block ID
  *
  * @return int|null
  */
 public function getPostId()
 {
     return $this->context->getRequest()->getParam('id');
 }