Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-cms
Controller
Adminhtml
Wysiwyg
Images
Contents.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
;
8
9
class
Contents
extends
\Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
10
{
14
protected
$resultLayoutFactory
;
15
19
protected
$resultJsonFactory
;
20
27
public
function
__construct
(
28
\
Magento
\Backend\
App
\
Action
\
Context
$context,
29
\
Magento
\Framework\Registry $coreRegistry,
30
\
Magento
\Framework\View\Result\LayoutFactory
$resultLayoutFactory
,
31
\
Magento
\Framework\Controller\Result\JsonFactory
$resultJsonFactory
32
) {
33
$this->resultLayoutFactory =
$resultLayoutFactory
;
34
$this->resultJsonFactory =
$resultJsonFactory
;
35
parent::__construct($context, $coreRegistry);
36
}
37
43
protected
function
_saveSessionCurrentPath
()
44
{
45
$this->
getStorage
()->getSession()->setCurrentPath(
46
$this->_objectManager->get(\
Magento
\Cms\Helper\Wysiwyg\Images::class)->getCurrentPath()
47
);
48
return
$this;
49
}
50
56
public
function
execute
()
57
{
58
try
{
59
$this->
_initAction
()->_saveSessionCurrentPath();
61
$resultLayout = $this->resultLayoutFactory->create();
62
return
$resultLayout;
63
}
catch
(\Exception $e) {
64
$result
= [
'error'
=>
true
,
'message'
=> $e->getMessage()];
66
$resultJson = $this->resultJsonFactory->create();
67
$resultJson->setData(
$result
);
68
return
$resultJson;
69
}
70
}
71
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\App
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
Definition:
Images.php:13
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Contents\$resultJsonFactory
$resultJsonFactory
Definition:
Contents.php:19
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Contents
Definition:
Contents.php:9
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Contents\__construct
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory)
Definition:
Contents.php:27
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Contents\$resultLayoutFactory
$resultLayoutFactory
Definition:
Contents.php:14
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Backend\App\Action
Definition:
Action.php:17
Magento
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
Definition:
DeleteFilesTest.php:7
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\_initAction
_initAction()
Definition:
Images.php:44
Magento\Backend\App\Action\Context
Definition:
Context.php:25
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\getStorage
getStorage()
Definition:
Images.php:55
Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Contents\_saveSessionCurrentPath
_saveSessionCurrentPath()
Definition:
Contents.php:43