Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Edit.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  public function execute()
17  {
18  $widgetInstance = $this->_initWidgetInstance();
19  if (!$widgetInstance) {
20  $this->_redirect('adminhtml/*/');
21  return;
22  }
23 
24  $this->_initAction();
25  $this->_view->getPage()->getConfig()->getTitle()->prepend(
26  $widgetInstance->getId() ? $widgetInstance->getTitle() : __('New Widget')
27  );
28  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Widgets'));
29  $this->_view->renderLayout();
30  }
31 }
__()
Definition: __.php:13