| Current Path : /home/rtorresani/www/vendor/magento/module-media-gallery-ui/Controller/Adminhtml/Index/ |
| Current File : //home/rtorresani/www/vendor/magento/module-media-gallery-ui/Controller/Adminhtml/Index/Index.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\MediaGalleryUi\Controller\Adminhtml\Index;
use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\View\Result\Layout;
use Magento\Framework\View\Result\LayoutFactory;
/**
* Controller serving the media gallery content
*/
class Index extends Action implements HttpGetActionInterface
{
public const ADMIN_RESOURCE = 'Magento_Cms::media_gallery';
/**
* @var LayoutFactory
*/
private $layoutFactory;
/**
* Index constructor.
*
* @param Context $context
* @param LayoutFactory $layoutFactory
*/
public function __construct(
Context $context,
LayoutFactory $layoutFactory
) {
parent::__construct($context);
$this->layoutFactory = $layoutFactory;
}
/**
* Get the media gallery layout
*
* @return Layout
*/
public function execute(): Layout
{
return $this->layoutFactory->create();
}
}